added sign-all functionality
authorSvenne Krap <svenne@krap.dk>
Mon, 11 Jan 2010 10:15:57 +0000 (11:15 +0100)
committerSvenne Krap <svenne@krap.dk>
Mon, 11 Jan 2010 10:15:57 +0000 (11:15 +0100)
sign-all.sh [new file with mode: 0755]

diff --git a/sign-all.sh b/sign-all.sh
new file mode 100755 (executable)
index 0000000..9df56c4
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+source `dirname $0`/conf/settings
+cd `dirname $0`
+
+rm -f zones/$zoneconf_name
+
+echo "Generating new $zoneconf_name"
+for d in zones/* ; do 
+    if [ ! -d $d ] ; then continue ; fi
+    zone=`basename $d` 
+    if [ ! -f $d/$zone ] ; then continue ; fi
+    echo " ... found $zone"
+    ./sign-zone.sh $zone
+done