From b400c4f95b9fc0e62d6020e2344174943a25e492 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Wed, 21 Jun 2017 15:41:37 -0700 Subject: Install init script in $DESTDIR/etc, not $prefix/$sysconfdir Fixes: #178. --- util/install_helper.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/install_helper.sh b/util/install_helper.sh index fe65c1c..9b53530 100755 --- a/util/install_helper.sh +++ b/util/install_helper.sh @@ -22,11 +22,13 @@ install -D -m 644 "${MESON_SOURCE_ROOT}/util/udev.rules" \ "${prefix}/lib/udev/rules.d/99-fuse3.rules" install -D -m 755 "${MESON_SOURCE_ROOT}/util/init_script" \ - "${prefix}/${sysconfdir}/init.d/fuse3" + "${DESTDIR}/etc/init.d/fuse3" -if test -x /usr/sbin/update-rc.d; then - # May fail for a DESTDIR installation +if test -x /usr/sbin/update-rc.d && test -z "${DESTDIR}"; then /usr/sbin/update-rc.d fuse3 start 34 S . start 41 0 6 . || /bin/true +else + echo "== FURTHER ACTION REQUIRED ==" + echo "Make sure that your init system will start the ${DESTDIR}/etc/init.d/fuse3 init script" fi -- cgit v1.2.3