From: 2xsec Date: Wed, 10 Oct 2018 09:51:26 +0000 (+0900) Subject: fix post section script error for rpm install X-Git-Tag: lxc-3.1.0~53^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2686%2Fhead;p=thirdparty%2Flxc.git fix post section script error for rpm install Signed-off-by: 2xsec --- diff --git a/lxc.spec.in b/lxc.spec.in index 0b2ebaaaf..7fcd811ff 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -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...