From 2603d23e12dc5c2c5d9eb284e3bdc940963936c8 Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Tue, 11 Aug 2015 00:08:36 +0100 Subject: [PATCH] Use DESTDIR when checking systemv script exists --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3