Skip to content

Commit

Permalink
Clean out previous bind values before adding new (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 19, 2021
1 parent 6d7a849 commit af5afe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ fi
hosts+=($(bashio::network.ipv4_address))
hosts+=($(bashio::network.ipv6_address))
hosts+=($(bashio::addon.ip_address))
yq delete --inplace "${CONFIG}" dns.bind_hosts
for host in "${hosts[@]}"; do
bashio::log.info "Adding ${host}"
yq write --inplace "${CONFIG}" \
Expand Down

0 comments on commit af5afe7

Please sign in to comment.