forked from ungleich-public/cdist
Fix temp file location and removal
This commit is contained in:
parent
ee64936ff9
commit
ec8f2f9488
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ case "${state}" in
|
|||
;;
|
||||
present)
|
||||
domain_param_file="${__object}/parameter/domain"
|
||||
requested_domains=$(mktemp domain.cdist.XXXXXXXXXX)
|
||||
requested_domains=$(mktemp "${TMPDIR:-/tmp}/domain.cdist.XXXXXXXXXX")
|
||||
if [ -f "${domain_param_file}" ]; then
|
||||
cp "${domain_param_file}" "${requested_domains}"
|
||||
else
|
||||
|
@ -66,6 +66,7 @@ case "${state}" in
|
|||
echo "--domain '${domain}' \\"
|
||||
done < "${requested_domains}")
|
||||
EOF
|
||||
rm -f "${requested_domains}"
|
||||
|
||||
if [ "${certificate_exists}" = "no" ]; then
|
||||
echo create >> "${__messages_out}"
|
||||
|
|
Loading…
Reference in a new issue