[lxc-devel] [lxc/master] lxc-oci: mkdir the download directory

flx42 on Github lxc-bot at linuxcontainers.org
Wed Apr 18 21:12:27 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 350 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180418/cf88e9c7/attachment.bin>
-------------- next part --------------
From f6a845a11b26e7fb18a5230080d44b135fd5a5ca Mon Sep 17 00:00:00 2001
From: Felix Abecassis <fabecassis at nvidia.com>
Date: Wed, 18 Apr 2018 14:09:04 -0700
Subject: [PATCH] lxc-oci: mkdir the download directory

---
 templates/lxc-oci.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/lxc-oci.in b/templates/lxc-oci.in
index d4fef193e..2ce1a9385 100644
--- a/templates/lxc-oci.in
+++ b/templates/lxc-oci.in
@@ -264,6 +264,7 @@ if [ "${OCI_USE_CACHE}" = "true" ]; then
 else
   DOWNLOAD_BASE=/tmp
 fi
+mkdir -p "${DOWNLOAD_BASE}"
 
 # Trap all exit signals
 trap cleanup EXIT HUP INT TERM


More information about the lxc-devel mailing list