From da37affbbbc218130ed4aa9e47f018d0360880c7 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Mon, 12 Feb 2024 10:52:06 -0800 Subject: [PATCH] replace hard coded zone with var --- sbin/pdns-zone-asc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/pdns-zone-asc.sh b/sbin/pdns-zone-asc.sh index 3e0db52..7a4e3a7 100755 --- a/sbin/pdns-zone-asc.sh +++ b/sbin/pdns-zone-asc.sh @@ -55,7 +55,7 @@ if [[ $zone_exists = "true" ]]; then fi fi # 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 if [[ -z $account ]]; then account=$hostname