check for both pdns.sh and pdns.conf before installing

This commit is contained in:
Matthew Saunders Brown 2024-02-23 11:58:00 -08:00
parent f9c1038f79
commit 27c8d7cc38

View File

@ -5,7 +5,7 @@
# Copyright (c) 2024 Matthew Saunders Brown <matthewsaundersbrown@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
if [[ ! -f /usr/local/etc/pdns.conf ]]; then
if [[ ! -f /usr/local/sbin/pdns.sh ]] || [[ ! -f /usr/local/etc/pdns.conf ]]; then
echo "powerdns-tools must be installed and configured first."
echo "See https://git.stack-source.com/msb/powerdns-tools"
exit