From 7d520afa9135281fb7f7905db29215dc1ea6a973 Mon Sep 17 00:00:00 2001 From: Dwight Engen Date: Mon, 3 Mar 2014 12:59:42 -0500 Subject: [PATCH] fix systemd unit file location to use prefix for local installs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit also remove /usr special case for non-debian distros since systemd itself sets systemunitdir=$(rootprefix)/lib/systemd/system Signed-off-by: Dwight Engen Acked-by: Stéphane Graber --- config/init/systemd/Makefile.am | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/init/systemd/Makefile.am b/config/init/systemd/Makefile.am index 6e2bb13b1..de5ee5008 100644 --- a/config/init/systemd/Makefile.am +++ b/config/init/systemd/Makefile.am @@ -3,11 +3,7 @@ EXTRA_DIST = \ lxc.service if INIT_SCRIPT_SYSTEMD -if HAVE_DEBIAN -SYSTEMD_UNIT_DIR = /lib/systemd/system -else -SYSTEMD_UNIT_DIR = /usr/lib/systemd/system -endif +SYSTEMD_UNIT_DIR = $(prefix)/lib/systemd/system install-systemd: lxc.service lxc-devsetup $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR) -- 2.47.2