aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.rst2
-rwxr-xr-xutil/install_helper.sh8
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index 285ef5a..38a1cf6 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -1,6 +1,8 @@
Unreleased Changes
==================
+* The init script is now installed into the right location
+ ($DESTDIR/etc/init.d rather than $prefix/$sysconfdir/init.d)
* The `example/passthrough_ll` filesystem now supports creating
and writing to files.
* `fuse_main()` / `fuse_remove_signal_handlers()`: do not reset
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