Skip to content

Commit

Permalink
fix systemd unit file location to use prefix for local installs
Browse files Browse the repository at this point in the history
also remove /usr special case for non-debian distros since systemd
itself sets systemunitdir=$(rootprefix)/lib/systemd/system

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
Dwight Engen authored and stgraber committed Mar 3, 2014
1 parent 1f776f5 commit d1d44d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions config/init/systemd/Makefile.am
Expand Up @@ -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)
Expand Down

0 comments on commit d1d44d6

Please sign in to comment.