]> git.proxmox.com Git - mirror_lxc.git/commitdiff
fix post section script error for rpm install
author2xsec <dh48.jeong@samsung.com>
Wed, 10 Oct 2018 09:51:26 +0000 (18:51 +0900)
committer2xsec <dh48.jeong@samsung.com>
Wed, 10 Oct 2018 09:51:26 +0000 (18:51 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
lxc.spec.in

index 0b2ebaaaf33737c7a97830639b3016426c0e7a5c..7fcd811ff7e413f0f94453dc516813d86195c950 100644 (file)
@@ -152,6 +152,11 @@ fi
 
 %post
 # This test should trigger a network configure on a new install.
+if [ ! -d @LXC_DISTRO_SYSCONF@ ]
+then
+       mkdir -p @LXC_DISTRO_SYSCONF@
+fi
+
 if [ ! -f @LXC_DISTRO_SYSCONF@/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' @LXC_DISTRO_SYSCONF@/lxc-net
 then
        # Grab a random 10net subnet.  Need to add test logic...