mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-01 19:47:37 +03:00
fix(release): change owner of cache to Navidrome user (#3599)
This commit is contained in:
parent
3942275689
commit
51eed74a0e
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ if [ ! -f "$postinstall_flag" ]; then
|
|||
# The primary reason why this would fail is if the service was already installed AND
|
||||
# someone manually removed the .installed flag. In this case, ignore the error
|
||||
navidrome service install --user navidrome --working-directory /var/lib/navidrome --configfile /etc/navidrome/navidrome.toml || :
|
||||
# Any `navidrome` command will make a cache. Make sure that this is properly owned by the Navidrome user
|
||||
# and not by root
|
||||
chown navidrome:navidrome /var/lib/navidrome/cache
|
||||
touch "$postinstall_flag"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue