From a73de31cc42b7e5b559a5f2db31f69c5e38b6a22 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 25 Jun 2023 11:30:47 +0000 Subject: [PATCH] Update --- scripts/install_pve.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 40e0da4..a525235 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -295,7 +295,7 @@ if [[ $output == *"Hetzner_vServer"* ]]; then wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/extra_scripts/ifupdown2-install.service -O /etc/systemd/system/ifupdown2-install.service chmod 777 install_ifupdown2.sh chmod 777 /etc/systemd/system/ifupdown2-install.service - if [ ! -f "install_ifupdown2.sh" ]; then + if [ -f "install_ifupdown2.sh" ]; then _green "This script will automatically reboot the system after 5 seconds, please wait a few minutes to log into SSH and execute this script again" _green "本脚本将在5秒后自动重启系统,请待几分钟后登录SSH再次执行本脚本" sleep 5 @@ -304,7 +304,6 @@ if [[ $output == *"Hetzner_vServer"* ]]; then systemctl start ifupdown2-install.service fi fi -fi # 检测是否已重启过 if [ ! -f "/root/reboot_pve.txt" ]; then echo "1" > "/root/reboot_pve.txt"