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:
parent
fd09ca103f
commit
62f9c3a458
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue