X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=bacula-check-cert;fp=bacula-check-cert;h=e7404451b8edf0f91ab72c0dddf7b5fda8b4e916;hb=05a28605467fa8123b22247d25bda0325f9e93ca;hp=9ea91efaa8d608ca62de5c4a38a34359f6935f24;hpb=428306fca14f3f570b48204219215c8e1b556481;p=bacula-cn.git diff --git a/bacula-check-cert b/bacula-check-cert index 9ea91ef..e740445 100755 --- a/bacula-check-cert +++ b/bacula-check-cert @@ -1,17 +1,33 @@ #!/bin/bash -BACULACRT=/etc/bacula/bacula-fd.pem.old +BACULACRT=/etc/bacula/bacula-fd.pem +DAYS=$(expr 30 \* 86400) -test -f $BACULACRT || echo "Ne mogu otvoriti datoteku $BACULACRT!" +if [ ! -f $BACULACRT ]; then + mailx -s "BACULA: Ne mogu otvoriti datoteku $BACULACRT!" root <