mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
better error check
This commit is contained in:
parent
383fa34cd4
commit
4e91c43aea
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,7 @@ function refresh_certs_with_nginx() {
|
|||
echo "# FQDN(${FQDN})"
|
||||
# check if there is a LetsEncrypt Subscription for this domain
|
||||
details=$(/home/admin/config.scripts/blitz.subscriptions.letsencrypt.py subscription-detail $FQDN)
|
||||
if [ ${#details} -gt 10 ]; then
|
||||
if [ $(echo "${details}" | grep -c "error=") -eq 0 ] && [ ${#details} -gt 10 ]; then
|
||||
|
||||
echo "# details(${details})"
|
||||
|
||||
|
@ -344,6 +344,8 @@ elif [ "$1" = "remove-cert" ]; then
|
|||
options="ip&tor"
|
||||
fi
|
||||
|
||||
echo "# bonus.letsencrypt.sh remove-cert ${FQDN} ${options}"
|
||||
|
||||
# remove cert from renewal
|
||||
$ACME_INSTALL_HOME/acme.sh --remove -d "${FQDN}" --ecc --home "${ACME_INSTALL_HOME}" --config-home "${ACME_CONFIG_HOME}" --cert-home "${ACME_CERT_HOME}" 2>&1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue