Use arrays in scripts for BTSs

This commit is contained in:
Keith Whyte 2020-04-29 02:41:05 +02:00
parent 0e360b2194
commit bd8f00a3d0
5 changed files with 13 additions and 6 deletions

View file

@ -4,7 +4,7 @@ RHIZO_SCRIPT="/home/rhizomatica/bin"
. $RHIZO_SCRIPT/vars.sh
LOGFILE="/var/log/monitor_amp.log"
for bts in $BTS0 $BTS1 $BTS2; do
for bts in "${BTS_MASTER[@]}" ; do
logc "Turning off AMP on BTS $bts:";
ssh root@$bts "sbts2050-util sbts2050-pwr-enable 1 1 0";
done