added sign-all functionality
[public/microdnssec.git] / sign-all.sh
1 #!/bin/bash
2 source `dirname $0`/conf/settings
3 cd `dirname $0`
4
5 rm -f zones/$zoneconf_name
6
7 echo "Generating new $zoneconf_name"
8 for d in zones/* ; do 
9     if [ ! -d $d ] ; then continue ; fi
10     zone=`basename $d` 
11     if [ ! -f $d/$zone ] ; then continue ; fi
12     echo " ... found $zone"
13     ./sign-zone.sh $zone
14 done