]> granicus.if.org Git - pdns/commitdiff
clone-zone got inception and expiration wrong, plus teach it to grab the correct key
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 30 Dec 2010 14:47:58 +0000 (14:47 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 30 Dec 2010 14:47:58 +0000 (14:47 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1771 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnssec-scripts/clone-zone

index b27d2b1619e01ee9746bb45beed4c0c2918f6d2d..fbc84d40d3bb57c59efc47b710c5cedc0ae92332 100755 (executable)
@@ -1,11 +1,11 @@
 #!/bin/bash
 
 TIMERANGE=$(drill -D @127.0.0.1 -p 5300 powerdnssec.org -t soa | grep RRSIG | head -1 | 
-       awk '{printf "-i %s -e %s", $9, $10}')
+       awk '{printf "-e %s -i %s", $9, $10}')
 
 PLAINZONE=$1
 ZSKID=$(drill -D @127.0.0.1 -p 5300 powerdnssec.org -t soa  | grep RRSIG | cut -f2 -d{ | cut -f1 -d} | awk '{print $3}')
-ZSKFNAME=$(echo /home/ahu/work/pdns/pdns/pdns/keys/$1/keys/*$ZSKID*zsk.active.private | sed s/.private//)
+ZSKFNAME=$(echo /home/ahu/work/pdns/pdns/pdns/keys/$1/keys/000002*zsk.active.private | sed s/.private//)
 
-ldns-signzone $2 $1 $TIMERANGE $ZSKFNAME
+ldns-signzone $2 $3 $4 $1 $TIMERANGE $ZSKFNAME
 echo Zone signed with key id $ZSKID now in $1.signed
\ No newline at end of file