1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-21 06:56:53 +02:00

exit on config fest failure

This commit is contained in:
diginc 2018-01-25 12:45:05 -06:00
parent 16127f48fc
commit 62ddf72d15

View File

@ -227,9 +227,9 @@ test_configs() {
test_configs_debian() {
set -e
echo -n '::: Testing DNSmasq config: '
dnsmasq --test -7 /etc/dnsmasq.d
dnsmasq --test -7 /etc/dnsmasq.d || exit 1
echo -n '::: Testing lighttpd config: '
lighttpd -t -f /etc/lighttpd/lighttpd.conf
lighttpd -t -f /etc/lighttpd/lighttpd.conf || exit 1
set +e
echo "::: All config checks passed, starting ..."
}