equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 source ./dnstools.conf |
|
3 |
|
4 master_dir=$MASTER_DIR |
|
5 zsklive=$ZSKLIVE # ZSK-Schluessellebensdauer in Tagen |
|
6 ksklive=$KSKLIVE # KSK-Schluessellebensdauer in Tagen |
|
7 |
|
8 |
|
9 for domain in $master_dir/* |
|
10 do |
|
11 |
|
12 start_time=`ls $domain/index.zsk -l --time-style=+%s | cut -d' ' -f6` |
|
13 z_end_time=$[start_time + $[zsklive * 86400]] |
|
14 echo ${domain##/*/} index.zsk `date -d @$z_end_time +%d.%m.%Y` | tr ' ' '\t' |
|
15 |
|
16 start_time=`ls $domain/index.ksk -l --time-style=+%s | cut -d' ' -f6` |
|
17 k_end_time=$[start_time + $[ksklive * 86400]] |
|
18 echo ${domain##/*/} index.ksk `date -d @$k_end_time +%d.%m.%Y` | tr ' ' '\t' |
|
19 done |
|
20 |
|
21 |
|
22 #echo Ablauf $INDEX `date -d @$ENDTIME +%Y%m%d000000` |
|
23 |