ソースを参照

Update reboot_phones.sh

FusionPBX 2 年 前
コミット
10592c0453
1 ファイル変更9 行追加1 行削除
  1. 9 1
      debian/resources/reboot_phones.sh

+ 9 - 1
debian/resources/reboot_phones.sh

@@ -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