]> 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 3820ef510c6eb6eacb0c686622354cc79cb73215..9242b44a043c3c73a04843644e60da56c8787f33 100755 (executable)
@@ -15,7 +15,7 @@ update ()
 {
        local D=$1
        local K=keys/$D
-       local H=$K.hash
+       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"
@@ -32,8 +32,8 @@ if [ -z "$1" ] ; then
                        update $(basename $DD)
                fi
        done
-       for H in keys/*.hash ; do
-               B=$(basename $H .hash)
+       for H in khash/* ; do
+               B=$(basename $H)
                if [ ! -d keys/$B ] ; then
                        echo "## $B: Deleted obsolete hash"
                        rm $H