X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=bacula-check-cert;h=2dc908c12a4aa9a3b44f46dd66267335bc09b2a7;hb=b57300acec64395ee4a1b01ff475685b8f44a140;hp=9ea91efaa8d608ca62de5c4a38a34359f6935f24;hpb=428306fca14f3f570b48204219215c8e1b556481;p=bacula-cn.git diff --git a/bacula-check-cert b/bacula-check-cert index 9ea91ef..2dc908c 100755 --- a/bacula-check-cert +++ b/bacula-check-cert @@ -1,17 +1,34 @@ #!/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!" -a 'Content-Type: text/plain; charset="utf-8"' root <