Dnsmasq config test

Exit during container startup if dnsmasq configs have any issues
This commit is contained in:
Adam Hill 2018-08-07 15:53:38 -05:00 committed by GitHub
parent bc8e746546
commit d1c0ed9bf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -262,8 +262,10 @@ setup_ipv4_ipv6() {
test_configs() {
set -e
echo -n '::: Testing pihole-FTL DNS: '
echo -n '::: Testing pihole-FTL configs: '
pihole-FTL test || exit 1
echo -n '::: Testing pihole-dnsmasq configs: '
pihole-FTL dnsmasq-test || exit 1
echo -n '::: Testing lighttpd config: '
lighttpd -t -f /etc/lighttpd/lighttpd.conf || exit 1
set +e