소스 검색

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=","
 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