acme-sh-request-cert: do not fail if there's a valid, and not expiring, certificate already.

This commit is contained in:
Andrea Dell'Amico 2020-02-07 14:54:39 +01:00
parent d019c0d8cd
commit 94ffed10c9
1 changed files with 4 additions and 0 deletions

View File

@ -48,4 +48,8 @@ if [ $RETVAL -eq 0 ] ; then
touch "$ACME_SH_CONFIG_HOME/ok_certificate_issued" touch "$ACME_SH_CONFIG_HOME/ok_certificate_issued"
fi fi
if [ $RETVAL -eq 2 ] ; then
# There is a valid certificate already
exit 0
fi
exit $RETVAL exit $RETVAL