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:
parent
16127f48fc
commit
62ddf72d15
|
@ -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 ..."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user