From: dlezcano Date: Mon, 5 Jan 2009 19:19:46 +0000 (+0000) Subject: Create the localstatedir when installing the commands X-Git-Tag: lxc_0_5_2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=845eac4b88cd347798540b1e07fe7e85fd3435d0;p=thirdparty%2Flxc.git Create the localstatedir when installing the commands From: Daniel Lezcano For some distros (eg. opensuse), when installing with "make install", the localstatedir is not created. This modification makes this directory to be created at the install time. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index a392939bb..e0e5b0e6d 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -120,6 +120,7 @@ lxc_version_LDADD = liblxc.la install-exec-local: -@export PATH=$$PATH:/sbin:/usr/sbin && \ + mkdir -p $(localstatedir) && \ setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \ $(bindir)/lxc-execute && \ setcap cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \