replace hard coded zone with var

This commit is contained in:
Matthew Saunders Brown 2024-02-12 10:52:06 -08:00
parent 8ba74f0ce4
commit da37affbbb

View File

@ -55,7 +55,7 @@ if [[ $zone_exists = "true" ]]; then
fi fi
fi fi
# get current SOA # get current SOA
soa=$(/usr/local/sbin/pdns-zone-exp.sh -z stack-source.com -c|grep ',SOA,'|cut -d , -f 5) soa=$(/usr/local/sbin/pdns-zone-exp.sh -z $zone -c|grep ',SOA,'|cut -d , -f 5)
# get/set account # get/set account
if [[ -z $account ]]; then if [[ -z $account ]]; then
account=$hostname account=$hostname