also ignore trash and zones
[public/microdnssec.git] / edit-zone.sh
1 #!/bin/bash
2 # microdnssec, (c) Svenne Krap (svenne@krap.dk), 2010
3 # released under 2-clause BSD-license
4 source `dirname $0`/conf/settings
5 cd `dirname $0`
6
7 if [ $# -ne 1 ] ; then 
8     echo "$0 <zone>"
9     exit
10 fi
11
12 if [ ! -f zones/$1/$1 ] ; then
13     echo "$1 does not exist or is not prepared"
14     exit
15 fi
16
17 $EDITOR zones/$1/$1
18
19 echo "You might want to run update-zone-conf or sign-zone scripts"
20