diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 4388478..fd26d5e 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -385,7 +385,7 @@ openssh-server echo "Failed to download the rootfs, aborting." return 1 fi - mkdir -p "$(basename "$cache/partial-$release-$arch/$interpreter_path")" + mkdir -p "$(dirname "$cache/partial-$release-$arch/$interpreter_path")" cp "$interpreter" "$cache/partial-$release-$arch/$interpreter_path" if [ $? -ne 0 ]; then echo "failed to copy $interpreter to $cache/partial-$release-$arch/$interpreter_path"