]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Create the localstatedir when installing the commands
authordlezcano <dlezcano>
Mon, 5 Jan 2009 19:19:46 +0000 (19:19 +0000)
committerdlezcano <dlezcano>
Mon, 5 Jan 2009 19:19:46 +0000 (19:19 +0000)
From: Daniel Lezcano <dlezcano@fr.ibm.com>

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 <dlezcano@fr.ibm.com>
src/lxc/Makefile.am

index a392939bb1169342c845de50baa6414f3b7605c0..e0e5b0e6d1dc913a63d057bd1cbb22ebca8ca36f 100644 (file)
@@ -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 \