Update reboot_phones.sh

This commit is contained in:
FusionPBX 2022-11-09 19:47:20 -07:00 committed by GitHub
parent 50032b722d
commit 10592c0453
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -21,9 +21,17 @@ ARR=()
IFS=","
INPUT=$FILE
#Loop through the registrations and reboot
#loop through the registrations and reboot
[ ! -f $INPUT ] &while read reg_user realm extra
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
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
if [ "$pausetime" > 0 ]; then