diff --git a/main.sh b/main.sh index d540108..0bc2b8c 100644 --- a/main.sh +++ b/main.sh @@ -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 }