From: Johannes Kastl Date: Thu, 24 Mar 2016 08:26:28 +0000 (+0100) Subject: lxc.spec.in: fixed hardcoded path to lxc-net config file X-Git-Tag: lxc-2.0.0.rc14~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F916%2Fhead;p=thirdparty%2Flxc.git lxc.spec.in: fixed hardcoded path to lxc-net config file Signed-off-by: Johannes Kastl --- diff --git a/lxc.spec.in b/lxc.spec.in index d0816d337..9cc8dc565 100644 --- a/lxc.spec.in +++ b/lxc.spec.in @@ -169,7 +169,7 @@ fi %post # This test should trigger a network configure on a new install. -if [ ! -f %{_sysconfdir}/sysconfig/lxc-net ] || ! grep -q 'USE_LXC_BRIDGE=' %{_sysconfdir}/sysconfig/lxc-net +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... while [ true ] @@ -181,7 +181,7 @@ then fi done - cat > %{_sysconfdir}/sysconfig/lxc-net < @LXC_DISTRO_SYSCONF@/lxc-net <