From bcc497e0908068822a84a39250016d8ce93aa8b9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 4 May 2018 10:10:53 +0200 Subject: [PATCH] Using new options of pdns-list-zones in bin/backup-pdns-global.sh --- bin/backup-pdns-global.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/backup-pdns-global.sh b/bin/backup-pdns-global.sh index 02ef672..e59c084 100755 --- a/bin/backup-pdns-global.sh +++ b/bin/backup-pdns-global.sh @@ -10,7 +10,7 @@ VERBOSE="n" DEBUG="n" QUIET='n' -VERSION="1.2" +VERSION="1.3" # console colors: RED="" @@ -408,8 +408,7 @@ get_zones() { fi local zone= - for zone in $( ./pdns-list-zones ${no_color_option} --global --quiet | \ - tail -n +3 | awk '{print $1}' ) ; do + for zone in $( ./pdns-list-zones ${no_color_option} --global --quiet --minimal ) ; do ZONES+=( "${zone}" ) done -- 2.39.5