From: Nick Steel Date: Mon, 10 Aug 2015 23:08:36 +0000 (+0100) Subject: Use DESTDIR when checking systemv script exists X-Git-Tag: 2.3.12~10^2^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F112%2Fhead;p=thirdparty%2Fshairport-sync.git Use DESTDIR when checking systemv script exists --- diff --git a/Makefile.am b/Makefile.am index c6f6ed13..0a4239a0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,7 +58,7 @@ if INSTALL_CONFIG_FILES endif if INSTALL_SYSTEMV [ -e $(DESTDIR)/etc/init.d ] || mkdir -p $(DESTDIR)/etc/init.d - [ -f /etc/init.d/shairport-sync ] || cp scripts/shairport-sync $(DESTDIR)/etc/init.d/ + [ -f $(DESTDIR)/etc/init.d/shairport-sync ] || cp scripts/shairport-sync $(DESTDIR)/etc/init.d/ update-rc.d shairport-sync defaults 90 10 endif if INSTALL_SYSTEMD