mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 15:05:56 +08:00
Update install_pve.sh
This commit is contained in:
parent
a9a180dc7e
commit
343d62744d
|
@ -1262,7 +1262,7 @@ if [ "$system_arch" = "x86" ]; then
|
|||
fi
|
||||
|
||||
# 确保DNS有效
|
||||
if [ ! -s "/etc/resolv.conf" ]; then
|
||||
if [ ! -s "/etc/resolv.conf" ] || [ -z "$(grep -vE '^\s*#' /etc/resolv.conf)" ]; then
|
||||
cp /etc/resolv.conf /etc/resolv.conf.bak
|
||||
if [[ "${CN}" == true ]]; then
|
||||
if [ -z "$ipv6_address" ] || [ -z "$ipv6_prefixlen" ] || [ -z "$ipv6_gateway" ]; then
|
||||
|
|
Loading…
Reference in a new issue