Upgrade acme.sh before requesting a certificate.
This commit is contained in:
parent
67b2b91863
commit
4098ab5161
|
@ -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 $?
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue