exit when there was no renewal.
This commit is contained in:
parent
ec62d48bbb
commit
08838d0704
|
|
@ -17,8 +17,9 @@ logger "acme-pg-hook: Check if the certificate has been renewed"
|
||||||
cmp ${LE_CERTS_DIR}/cert ${VSFTPD_CERTFILE}
|
cmp ${LE_CERTS_DIR}/cert ${VSFTPD_CERTFILE}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ] ; then
|
if [ $RETVAL -eq 0 ] ; then
|
||||||
logger "acme-vsftpd-hook: No new cerficate."
|
logger "acme-vsftpd-hook: No new cerficate, exiting."
|
||||||
echo "acme-vsftpd-hook: No new cerficate." >> $LE_LOG_DIR/vsftpd.log
|
echo "acme-vsftpd-hook: No new cerficate, exiting." >> $LE_LOG_DIR/vsftpd.log
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
logger "acme-vsftpd-hook: Copying the certificate file"
|
logger "acme-vsftpd-hook: Copying the certificate file"
|
||||||
echo "Copy the key file" >> $LE_LOG_DIR/vsftpd.log
|
echo "Copy the key file" >> $LE_LOG_DIR/vsftpd.log
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue