From: Lukas Schauer Date: Sat, 20 Oct 2018 10:27:23 +0000 (+0200) Subject: fixed a bug that resulted in a deleted domains.txt when using incorrect parameters... X-Git-Tag: v0.6.3~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5783a2dd45c92f5cacec54c3fa1d6d8d258d03bf;p=thirdparty%2Fdehydrated.git fixed a bug that resulted in a deleted domains.txt when using incorrect parameters in combination with signcsr (fixes #597) --- diff --git a/dehydrated b/dehydrated index 4897e7f..bda6393 100755 --- a/dehydrated +++ b/dehydrated @@ -562,7 +562,7 @@ http_request() { rm -f "${tempheaders}" # remove temporary domains.txt file if used - [[ -n "${PARAM_DOMAIN:-}" && -n "${DOMAINS_TXT:-}" ]] && rm "${DOMAINS_TXT}" + [[ "${COMMAND:-}" = "sign_domains" && -n "${PARAM_DOMAIN:-}" && -n "${DOMAINS_TXT:-}" ]] && rm "${DOMAINS_TXT}" exit 1 fi fi