From 62f9c3a458bd101df1d059eeaf8bce43e7c97c21 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Mon, 9 Feb 2026 22:11:45 +0000 Subject: [PATCH] fix: linux service should restart when upgrading (#5001) * When upgrading packages this should restart the service * We need to specify configfile otherwise this command doesn't work --- release/linux/postinstall.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release/linux/postinstall.sh b/release/linux/postinstall.sh index f3d9c9277..ed39fb127 100644 --- a/release/linux/postinstall.sh +++ b/release/linux/postinstall.sh @@ -23,6 +23,8 @@ if [ ! -f "$postinstall_flag" ]; then # and not by root chown navidrome:navidrome /var/lib/navidrome/cache touch "$postinstall_flag" +else + navidrome service stop --configfile /etc/navidrome/navidrome.toml && navidrome service start --configfile /etc/navidrome/navidrome.toml fi