Skip to content

Commit

Permalink
Check unbound config before reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Kaspar Rudert (mortzu) committed Jun 25, 2020
1 parent 23f2860 commit 29c56ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/icvpn/templates/icvpn-update
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ birdc6 configure > /dev/null

# TODO: This doesn't belong here but in the unbound role
sudo -u nobody /opt/{{ site_code }}/icvpn-scripts/mkdns -s "$DATADIR" -x bremen -f unbound > /etc/unbound/unbound.conf.d/icvpn.conf
unbound-control reload > /dev/null
if unbound-checkconf /etc/unbound/unbound.conf.d/icvpn.conf >/dev/null 2>&1; then
unbound-control reload > /dev/null
fi

0 comments on commit 29c56ee

Please sign in to comment.