Update reboot_phones.sh
This commit is contained in:
parent
50032b722d
commit
10592c0453
|
|
@ -21,9 +21,17 @@ ARR=()
|
||||||
IFS=","
|
IFS=","
|
||||||
INPUT=$FILE
|
INPUT=$FILE
|
||||||
|
|
||||||
#Loop through the registrations and reboot
|
#loop through the registrations and reboot
|
||||||
[ ! -f $INPUT ] &while read reg_user realm extra
|
[ ! -f $INPUT ] &while read reg_user realm extra
|
||||||
do
|
do
|
||||||
|
#option reboot all phones
|
||||||
|
if [ ."$domain" = ."all" ]; then
|
||||||
|
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||||
|
if [ "$pausetime" > 0 ]; then
|
||||||
|
sleep $pausetime
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#option reboot phones on a specific domain
|
||||||
if [ ."$realm" = ."$domain" ]; then
|
if [ ."$realm" = ."$domain" ]; then
|
||||||
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||||
if [ "$pausetime" > 0 ]; then
|
if [ "$pausetime" > 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue