equal
deleted
inserted
replaced
|
1 #!/bin/bash |
|
2 |
|
3 ZONE_DIR="/etc/bind/master" |
|
4 ZSKLIVE=60 # ZSK-Schluessellebensdauer in Tagen |
|
5 KSKLIVE=360 # KSK-Schluessellebensdauer in Tagen |
|
6 |
|
7 |
|
8 for DOMAIN in $ZONE_DIR/* |
|
9 do |
|
10 |
|
11 STARTTIME=`ls $DOMAIN/index.zsk -l --time-style=+%s | cut -d' ' -f6` |
|
12 Z_ENDTIME=$[STARTTIME + $[ZSKLIVE * 86400]] |
|
13 echo ${DOMAIN##/*/} index.zsk `date -d @$Z_ENDTIME +%d.%m.%Y` | tr ' ' '\t' |
|
14 |
|
15 STARTTIME=`ls $DOMAIN/index.ksk -l --time-style=+%s | cut -d' ' -f6` |
|
16 K_ENDTIME=$[STARTTIME + $[KSKLIVE * 86400]] |
|
17 echo ${DOMAIN##/*/} index.ksk `date -d @$K_ENDTIME +%d.%m.%Y` | tr ' ' '\t' |
|
18 done |
|
19 |
|
20 |
|
21 #echo Ablauf $INDEX `date -d @$ENDTIME +%Y%m%d000000` |
|
22 |