Delete stop-all-boxes.sh

This commit is contained in:
Moe Fwacky
2021-02-22 23:12:23 -08:00
committed by GitHub
parent 238d86c825
commit 47f690b040

View File

@@ -1,25 +0,0 @@
#!/bin/bash
# Function will call stop-all-channels.sh on ALL current boxes.
# The purpose of this falls mainly to a kind of soft "reset", as well as for channel updating.
CHANNEL_DIR_INCREMENT_SYMBOL="_"
MASTERDIRECTORY="channels"
cd ..
BOX_DIR_ARR=( $(find . -maxdepth 1 -type d -name 'channels'"$CHANNEL_DIR_INCREMENT_SYMBOL"'*' -printf "%P\n" | sort -t"$CHANNEL_DIR_INCREMENT_SYMBOL" -n) )
BOX_DIR_ARR+=("${MASTERDIRECTORY}")
echo "+++++ FOUND THE FOLLOWING BOXES: ${BOX_DIR_ARR[@]}"
for BOX in "${BOX_DIR_ARR[@]}"
do
cd ${BOX}
echo "+++++ CURRENTLY STOPPING ${BOX}"
sudo ./stop-all-channels.sh
cd ..
done