mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 22:16:25 +00:00
templates: fix download template
This patch fixes
commit 6e62213e02
("templates: actually create DOWNLOAD_TEMP directory".
To use mktemp -p correctly the directories need to exist. So call mkdir -p.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
4d6301a04a
commit
30c8676e15
@ -319,8 +319,11 @@ fi
|
|||||||
|
|
||||||
if ! command -V mktemp >/dev/null 2>&1; then
|
if ! command -V mktemp >/dev/null 2>&1; then
|
||||||
DOWNLOAD_TEMP="${DOWNLOAD_TEMP}/tmp/lxc-download.$$"
|
DOWNLOAD_TEMP="${DOWNLOAD_TEMP}/tmp/lxc-download.$$"
|
||||||
else
|
elif [ -n "${DOWNLOAD_TEMP}" ]; then
|
||||||
|
mkdir -p "${DOWNLOAD_TEMP}"
|
||||||
DOWNLOAD_TEMP="$(mktemp -p ${DOWNLOAD_TEMP} -d)"
|
DOWNLOAD_TEMP="$(mktemp -p ${DOWNLOAD_TEMP} -d)"
|
||||||
|
else
|
||||||
|
DOWNLOAD_TEMP="${DOWNLOAD_TEMP}$(mktemp -d)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Simply list images
|
# Simply list images
|
||||||
|
Loading…
Reference in New Issue
Block a user