mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-27 11:45:20 +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() {
|
test_configs_debian() {
|
||||||
set -e
|
set -e
|
||||||
echo -n '::: Testing DNSmasq config: '
|
echo -n '::: Testing DNSmasq config: '
|
||||||
dnsmasq --test -7 /etc/dnsmasq.d
|
dnsmasq --test -7 /etc/dnsmasq.d || exit 1
|
||||||
echo -n '::: Testing lighttpd config: '
|
echo -n '::: Testing lighttpd config: '
|
||||||
lighttpd -t -f /etc/lighttpd/lighttpd.conf
|
lighttpd -t -f /etc/lighttpd/lighttpd.conf || exit 1
|
||||||
set +e
|
set +e
|
||||||
echo "::: All config checks passed, starting ..."
|
echo "::: All config checks passed, starting ..."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user