]> mj.ucw.cz Git - nsc-5.git/blobdiff - bin/key-update
DNSSEC: Key hashes and resign-stamp moved to a separate directory
[nsc-5.git] / bin / key-update
index b033eba941fd9155aa57bc3957dc428a152dcf1d..9242b44a043c3c73a04843644e60da56c8787f33 100755 (executable)
@@ -14,8 +14,8 @@ fi
 update ()
 {
        local D=$1
-       local K=$KEYDIR/$D
-       local H=$K.hash
+       local K=keys/$D
+       local H=khash/$D
        cat $K/*.key | sha1sum | cut -f1 -d' ' >$H.new
        if [ ! -f $H ] || ! cmp -s $H $H.new ; then
                echo "** $D: New key hash"
@@ -27,14 +27,14 @@ update ()
 }
 
 if [ -z "$1" ] ; then
-       for DD in $KEYDIR/* ; do
+       for DD in keys/* ; do
                if [ -d "$DD" ] ; then
                        update $(basename $DD)
                fi
        done
-       for H in $KEYDIR/*.hash ; do
-               B=$(basename $H .hash)
-               if [ ! -d $KEYDIR/$B ] ; then
+       for H in khash/* ; do
+               B=$(basename $H)
+               if [ ! -d keys/$B ] ; then
                        echo "## $B: Deleted obsolete hash"
                        rm $H
                fi