diff -r 9cad6f1c5505 -r a1eefce2bd5e dnssec-lskey --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dnssec-lskey Wed Jun 30 13:15:11 2010 +0200 @@ -0,0 +1,23 @@ +#!/bin/bash +source ./dnstools.conf + +master_dir=$MASTER_DIR +zsklive=$ZSKLIVE # ZSK-Schluessellebensdauer in Tagen +ksklive=$KSKLIVE # KSK-Schluessellebensdauer in Tagen + + +for domain in $master_dir/* +do + + start_time=`ls $domain/index.zsk -l --time-style=+%s | cut -d' ' -f6` + z_end_time=$[start_time + $[zsklive * 86400]] + echo ${domain##/*/} index.zsk `date -d @$z_end_time +%d.%m.%Y` | tr ' ' '\t' + + start_time=`ls $domain/index.ksk -l --time-style=+%s | cut -d' ' -f6` + k_end_time=$[start_time + $[ksklive * 86400]] + echo ${domain##/*/} index.ksk `date -d @$k_end_time +%d.%m.%Y` | tr ' ' '\t' +done + + + #echo Ablauf $INDEX `date -d @$ENDTIME +%Y%m%d000000` +