mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update
This commit is contained in:
parent
34d5bf0434
commit
4e8c0dce7e
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue