Use DESTDIR when checking systemv script exists

This commit is contained in:
Nick Steel
2015-08-11 00:12:11 +01:00
parent 5d664671a0
commit 2603d23e12
+1 -1
View File
@@ -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