[__letsencrypt_cert] Be more consistent with temp files

Noticed this while doing previous work on the type.
This commit is contained in:
evilham 2021-02-23 13:41:00 +01:00
parent 3367ada5a8
commit 60ed6f35fd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ case "${state}" in
fi
if [ "${certificate_exists}" = "yes" ]; then
existing_domains="${__object}/existing_domains"
existing_domains=$(mktemp "${TMPDIR:-/tmp}/existing_domains.cdist.XXXXXXXXXX")
tail -n +4 "${__object:?}/explorer/certificate-data" | grep -v '^$' > "${existing_domains}"
certificate_is_test="$(_explorer_var certificate_is_test)"