Skip to content

Commit 8769a82

Browse files
committed
Fix the dns update with multiple servers
The quotes around `%DNS_SERVERS%` meant that the for loop had only a single item instead of splitting the servers based on the spaces.
1 parent 302b23d commit 8769a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fragments/add_dns_record.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020

2121
HOSTNAME="$(hostname --fqdn)"
2222

23-
for DNS_SERVER in "%DNS_SERVERS%"; do
23+
for DNS_SERVER in %DNS_SERVERS%; do
2424
# NOTE: the dot after the hostname is necessary
2525
/usr/local/bin/update_dns -s "$DNS_SERVER" -k "$DNS_UPDATE_KEY" "$HOSTNAME." "%IP_ADDRESS%"
2626
done

0 commit comments

Comments
 (0)