Browse Source

Ensure DNS cleanup on error exit.

pull/32/head
srvrco 10 years ago
parent
commit
2b20f8b9f6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getssl

+ 2
- 2
getssl View File

@ -43,10 +43,11 @@
# 2016-02-04 added short sleep following service restart before checking certs (v0.25)
# 2016-02-12 fix challenge token location when directory doesn't exist (v0.26)
# 2016-02-17 fix sed -E issue, and reduce length of renew check to 365 days for older systems (v0.27)
# 2016-04-05 Ensure DNS cleanup on error exit. (0.28) - pecigonzalo
# ---------------------------------------------------------------------------
PROGNAME=${0##*/}
VERSION="0.27"
VERSION="0.28"
# defaults
CA="https://acme-staging.api.letsencrypt.org"
@ -68,7 +69,6 @@ _FORCE_RENEW=0
_QUIET=0
clean_up() { # Perform pre-exit housekeeping
if [ ! -z "$DOMAIN_DIR" ]; then
rm -rf "${TEMP_DIR:?}"
fi


Loading…
Cancel
Save