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
This commit is contained in:
@@ -23,6 +23,8 @@ if [ ! -f "$postinstall_flag" ]; then
|
|||||||
# and not by root
|
# and not by root
|
||||||
chown navidrome:navidrome /var/lib/navidrome/cache
|
chown navidrome:navidrome /var/lib/navidrome/cache
|
||||||
touch "$postinstall_flag"
|
touch "$postinstall_flag"
|
||||||
|
else
|
||||||
|
navidrome service stop --configfile /etc/navidrome/navidrome.toml && navidrome service start --configfile /etc/navidrome/navidrome.toml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user