]> git.proxmox.com Git - mirror_lxc.git/blobdiff - templates/lxc-debian.in
debian: Fix container creation on missing cache
[mirror_lxc.git] / templates / lxc-debian.in
index 3ae996599d127f8ad1f7b410c75cf16ec813c911..69bdd6830db80854cc8539f5a58d1598c77ff721 100644 (file)
@@ -248,6 +248,10 @@ openssh-server
     release=$3
 
     trap cleanup EXIT SIGHUP SIGINT SIGTERM
+
+    # Create the cache
+    mkdir -p "$cache"
+
     # If debian-archive-keyring isn't installed, fetch GPG keys directly
     releasekeyring=/usr/share/keyrings/debian-archive-keyring.gpg
     if [ ! -f $releasekeyring ]; then