From 10592c045301f98c743d8c000f9db2523d2fccd4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 9 Nov 2022 19:47:20 -0700 Subject: [PATCH] Update reboot_phones.sh --- debian/resources/reboot_phones.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/resources/reboot_phones.sh b/debian/resources/reboot_phones.sh index 17e6611..8480d34 100755 --- a/debian/resources/reboot_phones.sh +++ b/debian/resources/reboot_phones.sh @@ -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