X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=bacula-check-cert;h=3ada58cc45102a4078425f94efd30b6f5d00e6b7;hb=refs%2Ftags%2Fdebian%2F20210226%2Bcn9u4;hp=9ea91efaa8d608ca62de5c4a38a34359f6935f24;hpb=428306fca14f3f570b48204219215c8e1b556481;p=bacula-cn.git diff --git a/bacula-check-cert b/bacula-check-cert index 9ea91ef..3ada58c 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 [ ! -r $BACULACRT ]; then + mailx -s "BACULA: Ne mogu otvoriti datoteku $BACULACRT!" -a 'Content-Type: text/plain; charset="utf-8"' root <