Upgrade acme.sh before requesting a certificate.

This commit is contained in:
Andrea Dell'Amico 2021-09-29 22:44:38 +02:00
parent 67b2b91863
commit 4098ab5161
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ else
exit 1
fi
$ACME_SH_BIN --upgrade
$ACME_SH_BIN --cron --home "$ACME_SH_BINDIR" --config-home "$ACME_SH_CONFIG_HOME" > "$ACME_SH_CRON_LOG_FILE" 2>&1
exit $?

View File

@ -30,6 +30,7 @@ if [ ! -f "$ACME_SH_CONFIG_HOME/ok_certificate_issued" ] && [ "$ACME_SH_USE_DNS_
service apache2 stop >/dev/null 2>&1
service httpd stop >/dev/null 2>&1
fi
$ACME_SH_BIN --upgrade
$ACME_SH_BIN {{ letsencrypt_acme_sh_specific_root_ca }} $ACME_SH_FIRST_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1
RETVAL=$?
if [ -x /bin/systemctl ] ; then
@ -42,6 +43,7 @@ if [ ! -f "$ACME_SH_CONFIG_HOME/ok_certificate_issued" ] && [ "$ACME_SH_USE_DNS_
service httpd start >/dev/null 2>&1
fi
else
$ACME_SH_BIN --upgrade
$ACME_SH_BIN {{ letsencrypt_acme_sh_specific_root_ca }} $ACME_SH_ISSUE_CERT_REQUEST > "$ACME_SH_ISSUE_LOG_FILE" 2>&1
RETVAL=$?
fi