]> git.proxmox.com Git - pve-container.git/commitdiff
ensure the config dir exists in update_lxc_config
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jul 2021 06:22:28 +0000 (08:22 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jul 2021 06:23:00 +0000 (08:23 +0200)
Otherwise make_seccomp_config cannot add files to it.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm

index 3e80ddfa57a2332569a7ed0475b5b1c198337a57..bc81ba74382d4343ea7676cd54fe4ea5a5eacb0c 100644 (file)
@@ -610,6 +610,8 @@ sub update_lxc_config {
 
     my $ostype = $conf->{ostype} || die "missing 'ostype' - internal error";
 
+    File::Path::mkpath($dir);
+
     my $cfgpath = '/usr/share/lxc/config';
     my $inc = "$cfgpath/$ostype.common.conf";
     $inc ="$cfgpath/common.conf" if !-f $inc;