This commit is contained in:
CanbiZ 2025-05-05 16:55:58 +02:00
commit 356e053caf

View File

@ -194,4 +194,16 @@ customize() {
fi fi
echo "bash -c \"\$(curl -fsSL https://github.com/community-scripts/ProxmoxVED/raw/main/ct/${app}.sh)\"" >/usr/bin/update echo "bash -c \"\$(curl -fsSL https://github.com/community-scripts/ProxmoxVED/raw/main/ct/${app}.sh)\"" >/usr/bin/update
chmod +x /usr/bin/update chmod +x /usr/bin/update
NS_VALUE=$(echo "$PCT_OPTIONS" | sed -n 's/.*-nameserver=\([^ ]*\).*/\1/p')
if [ "$NS_VALUE" != "" ] && [ "$NS_VALUE" != "Host" ]; then
CONFIG_FILE="/etc/udhcpc/udhcpc.conf"
if grep -q '^#RESOLV_CONF=' "$CONFIG_FILE"; then
sed -i 's/^#RESOLV_CONF=.*/RESOLV_CONF="no"/' "$CONFIG_FILE"
else
echo 'RESOLV_CONF="no"' >>"$CONFIG_FILE"
fi
fi
} }