From 29cdd5d0eb3da4226bb488f722926d19ea69fcad Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 22 Feb 2024 15:49:33 -0800 Subject: [PATCH] require pdns.conf in order to run any scripts --- sbin/pdns.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbin/pdns.sh b/sbin/pdns.sh index e92b9aa..06e07c0 100755 --- a/sbin/pdns.sh +++ b/sbin/pdns.sh @@ -19,6 +19,9 @@ fi # Any of the other constants below can be overriden in the local config. if [[ -f /usr/local/etc/pdns.conf ]]; then 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 # constants