mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-02 02:58:10 +08:00
Update install_pve.sh
This commit is contained in:
parent
10fbd5fa19
commit
abf962852a
1 changed files with 5 additions and 0 deletions
|
@ -225,6 +225,11 @@ if grep -q "source /etc/network/interfaces.d/*" /etc/network/interfaces; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
|
if [ ! -s "/etc/resolv.conf" ]
|
||||||
|
then
|
||||||
|
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
|
||||||
|
sudo chattr +i /etc/resolv.conf
|
||||||
|
fi
|
||||||
# 打印安装后的信息
|
# 打印安装后的信息
|
||||||
url="https://${ip}:8006/"
|
url="https://${ip}:8006/"
|
||||||
_green "安装完毕,请打开HTTPS网页 $url"
|
_green "安装完毕,请打开HTTPS网页 $url"
|
||||||
|
|
Loading…
Reference in a new issue