]> git.proxmox.com Git - mirror_lxc.git/commit - templates/lxc-download.in
templates: actually create DOWNLOAD_TEMP directory
authorMark Asselstine <mark.asselstine@windriver.com>
Thu, 31 May 2018 20:21:45 +0000 (16:21 -0400)
committerMark Asselstine <mark.asselstine@windriver.com>
Thu, 31 May 2018 20:27:05 +0000 (16:27 -0400)
commit6e62213e029497fad264ba0d48549ee5e6f5e92d
tree0c24a693235ffdde8b69f6fe43ca1316db39d446
parentae8d875f89ac69d412ef20e288395426bf3f02cc
templates: actually create DOWNLOAD_TEMP directory

The way 'mktemp' is currently used you will get a temp directory in
$TMPDIR or '/tmp' and DOWNLOAD_TEMP will not be pointing to an actual
directory. This will result in the wget operations failing and the
container will fail to create:

    ERROR: Failed to download http://....

Instead we want to use the '-p' option for mktemp to set the base path
and this will ensure that the temp directory is created in the correct
location and DOWNLOAD_TEMP will be consistent with this location.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
templates/lxc-download.in