Correct code

This commit is contained in:
Alexandre
2021-05-03 07:27:27 +02:00
committed by GitHub
parent 8061711fc6
commit 90ef0d2d21

View File

@@ -13,10 +13,10 @@ if bashio::config.has_value 'DNS_server'; then
DNSLIST=""
# Get DNS servers
for DNSSERVER in ${DNS_server//,/ } # Separate comma separated values
for server in ${DNSSERVER//,/ } # Separate comma separated values
do
DNS="${DNS}nameserver $DNSSERVER\n"
DNSLIST="$DNSSERVER $DNSLIST"
DNS="${DNS}nameserver $server\n"
DNSLIST="$server $DNSLIST"
done
# Write resolv.conf