From 4e8c0dce7e1a61f8e57d8a296a8ef98513c8416b Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 25 Jun 2023 11:38:32 +0000 Subject: [PATCH] Update --- scripts/install_pve.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index 25f671c..0264ed0 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -296,12 +296,12 @@ if [[ $output == *"Hetzner_vServer"* ]]; then chmod 777 install_ifupdown2.sh chmod 777 /etc/systemd/system/ifupdown2-install.service 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 - echo "1" > "/root/reboot_pve.txt" + # _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再次执行本脚本" systemctl enable ifupdown2-install.service - systemctl start ifupdown2-install.service + # sleep 5 + # echo "1" > "/root/reboot_pve.txt" + # systemctl start ifupdown2-install.service fi fi fi @@ -309,7 +309,7 @@ fi if [ ! -f "/root/reboot_pve.txt" ]; then echo "1" > "/root/reboot_pve.txt" _green "Please restart the system for the changes to take effect." - _green "请执行 reboot 重启系统后再次自行本脚本" + _green "请执行 reboot 重启系统后再次执行本脚本" exit 1 fi