check for both pdns.sh and pdns.conf before installing
This commit is contained in:
parent
f9c1038f79
commit
27c8d7cc38
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user