Set DNS Options for Alpine

This commit is contained in:
Michel Roegl-Brunner 2025-05-05 16:14:07 +02:00
parent 52d3aaaf0f
commit 019fbeed90

View File

@ -195,7 +195,7 @@ customize() {
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" | grep -oP '(?<=-nameserver=)[^\s]+') NS_VALUE=$(echo "$PCT_OPTIONS" | sed -n 's/.*-nameserver=\([^ ]*\).*/\1/p')
if [ "$NS_VALUE" != "" ] && [ "$NS_VALUE" != "Host" ]; then if [ "$NS_VALUE" != "" ] && [ "$NS_VALUE" != "Host" ]; then