PC-202302260912\Administrator 2023-08-03 18:17:44 +08:00
parent d1dd543c60
commit e4c63fcc48
1 changed files with 2 additions and 1 deletions

View File

@ -268,10 +268,11 @@ gm_option() {
echo -e "开始重启gm"
restart_server "admin" "$ip"
elif [ "$action" = "batch_reboot" ]; then
local path="/data/update/script/txt/gm_ip.txt"
echo -e "开始更新gm"
while read -r ip; do
restart_server "admin" "$ip"
done < gm_ip.txt
done < ${path}
fi
}