forked from ungleich-public/cdist
allow user to change __cdist_tmp_base_dir to avoid using /tmp
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
59ec60ba0b
commit
4873b046ba
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@ __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname"
|
||||||
################################################################################
|
################################################################################
|
||||||
# Tempfiles
|
# Tempfiles
|
||||||
#
|
#
|
||||||
__cdist_tmp_dir=$(mktemp -d "/tmp/cdist.XXXXXXXXXXXX")
|
: ${__cdist_tmp_base_dir=/tmp}
|
||||||
|
__cdist_tmp_dir=$(mktemp -d "$__cdist_tmp_base_dir/cdist.XXXXXXXXXXXX")
|
||||||
__cdist_tmp_file=$(mktemp "$__cdist_tmp_dir/cdist.XXXXXXXXXXXX")
|
__cdist_tmp_file=$(mktemp "$__cdist_tmp_dir/cdist.XXXXXXXXXXXX")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in a new issue