From 776c0210eea73d8c2bc23540528a4840cb32639d Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Mon, 26 Jun 2023 23:10:51 +0800 Subject: [PATCH] Update install_pve.sh --- scripts/install_pve.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install_pve.sh b/scripts/install_pve.sh index d330cd7..e1bdfac 100644 --- a/scripts/install_pve.sh +++ b/scripts/install_pve.sh @@ -113,6 +113,7 @@ if [[ -f "/etc/network/interfaces.d/50-cloud-init" && -f "/etc/network/interface fi chattr -i /etc/network/interfaces cat /etc/network/interfaces.d/50-cloud-init >> /etc/network/interfaces + chattr -i /etc/network/interfaces.d/50-cloud-init rm /etc/network/interfaces.d/50-cloud-init chattr +i /etc/network/interfaces fi @@ -633,4 +634,4 @@ _green "安装完毕,请打开HTTPS网页 $url" _green "用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)" _green "如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统" rm -rf /root/reboot_pve.txt -rm -rf /root/ifupdown2_installed.txt \ No newline at end of file +rm -rf /root/ifupdown2_installed.txt