From f991883eb0b9a7d6fb9970fab31502b0608bb27e Mon Sep 17 00:00:00 2001 From: Svenne Krap Date: Mon, 11 Jan 2010 10:41:22 +0100 Subject: [PATCH] make name of zone-conf configurable --- conf/settings.sample | 1 + update-zone-conf.sh | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/settings.sample b/conf/settings.sample index 143f3b5..4fdaa6f 100644 --- a/conf/settings.sample +++ b/conf/settings.sample @@ -2,6 +2,7 @@ signzone=/usr/sbin/dnssec-signzone keygen=/usr/bin/dnssec-keygen salt_length=32 resign_days=10 +zoneconf_name="seczone.conf" num_nameservers=2 diff --git a/update-zone-conf.sh b/update-zone-conf.sh index 5716c8d..24be766 100755 --- a/update-zone-conf.sh +++ b/update-zone-conf.sh @@ -2,11 +2,12 @@ source `dirname $0`/conf/settings cd `dirname $0` -rm -f zones/zone.conf +rm -f zones/$zoneconf_name +echo "Generating new $zoneconf_name" for d in zones/* ; do zone=`basename $d` -cat >> zones/zone.conf <> zones/$zoneconf_name <