From 2b20f8b9f62137380e7be1c066de87d5652ff088 Mon Sep 17 00:00:00 2001 From: srvrco Date: Tue, 5 Apr 2016 15:33:55 +0100 Subject: [PATCH] Ensure DNS cleanup on error exit. --- getssl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getssl b/getssl index 5c30bf0..bbe6a0e 100755 --- a/getssl +++ b/getssl @@ -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