require pdns.conf in order to run any scripts

This commit is contained in:
Matthew Saunders Brown 2024-02-22 15:49:33 -08:00
parent cbe042381c
commit 29cdd5d0eb

View File

@ -19,6 +19,9 @@ fi
# Any of the other constants below can be overriden in the local config. # Any of the other constants below can be overriden in the local config.
if [[ -f /usr/local/etc/pdns.conf ]]; then if [[ -f /usr/local/etc/pdns.conf ]]; then
source /usr/local/etc/pdns.conf source /usr/local/etc/pdns.conf
else
echo "ERROR: Local config missing. You need to install and configure /usr/local/etc/pdns.conf"
exit
fi fi
# constants # constants