exit when there was no renewal.

This commit is contained in:
Andrea Dell'Amico 2022-01-24 13:28:52 +01:00
parent ec62d48bbb
commit 08838d0704
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 2 deletions

View File

@ -17,8 +17,9 @@ logger "acme-pg-hook: Check if the certificate has been renewed"
cmp ${LE_CERTS_DIR}/cert ${VSFTPD_CERTFILE}
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
logger "acme-vsftpd-hook: No new cerficate."
echo "acme-vsftpd-hook: No new cerficate." >> $LE_LOG_DIR/vsftpd.log
logger "acme-vsftpd-hook: No new cerficate, exiting."
echo "acme-vsftpd-hook: No new cerficate, exiting." >> $LE_LOG_DIR/vsftpd.log
exit 0
else
logger "acme-vsftpd-hook: Copying the certificate file"
echo "Copy the key file" >> $LE_LOG_DIR/vsftpd.log