]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Always update the startup script in FreeBSD
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 23 May 2022 09:29:47 +0000 (10:29 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 23 May 2022 09:29:47 +0000 (10:29 +0100)
Makefile.am

index 6949127a792f260faf4144c5836b575a437abbc5..69a8ebe86d89f6f94c4235376b0c9943bcb6b5a4 100644 (file)
@@ -248,7 +248,8 @@ if INSTALL_FREEBSD_SERVICE
        pw showuser shairport-sync > /dev/null 2>&1 || pw adduser -c "shairport-sync unprivileged user" -n shairport-sync -u 801 -s /usr/sbin/nologin -d /nonexistent > /dev/null 2>&1
        [ -e /var/run/shairport-sync ] || mkdir -p /var/run/shairport-sync
        chown shairport-sync:shairport-sync /var/run/shairport-sync
-       [ -e /usr/local/etc/rc.d/shairport_sync ] || cp scripts/shairport-sync.freebsd /usr/local/etc/rc.d/shairport_sync
+  # Always update the startup script -- this is different to the Linux systemd situation, where the startup script is untouched if it exists.
+       cp scripts/shairport-sync.freebsd /usr/local/etc/rc.d/shairport_sync
        chmod 555 /usr/local/etc/rc.d/shairport_sync
 endif
 if INSTALL_CYGWIN_SERVICE