mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-29 11:54:04 +02:00
Correct code
This commit is contained in:
@@ -13,10 +13,10 @@ if bashio::config.has_value 'DNS_server'; then
|
|||||||
DNSLIST=""
|
DNSLIST=""
|
||||||
|
|
||||||
# Get DNS servers
|
# Get DNS servers
|
||||||
for DNSSERVER in ${DNS_server//,/ } # Separate comma separated values
|
for server in ${DNSSERVER//,/ } # Separate comma separated values
|
||||||
do
|
do
|
||||||
DNS="${DNS}nameserver $DNSSERVER\n"
|
DNS="${DNS}nameserver $server\n"
|
||||||
DNSLIST="$DNSSERVER $DNSLIST"
|
DNSLIST="$server $DNSLIST"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Write resolv.conf
|
# Write resolv.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user