navidrome / website

Navidrome's documentation website
https://www.navidrome.org
Apache License 2.0
18 stars 92 forks source link

Conform to FHS standards for /opt Linux installs #86

Closed davidhaymond closed 1 year ago

davidhaymond commented 1 year ago

Use /etc/opt for configuration and /var/opt for data instead of /var/lib for both. See Section 3.13.2 from the FHS 3.0 standard:

Package files that are variable (change in normal operation) must be installed in /var/opt. See the section on /var/opt for more information.

Host-specific configuration files must be installed in /etc/opt. See the section on /etc for more information.

I also updated the instructions to use the more familiar mkdir and chown instead of install. If you want me to change it back, let me know, and I'll update the PR. Note also that I removed the instruction to change ownership of /opt/navidrome: Navidrome doesn't seem to need write access to the folder containing its binary.

eclairevoyant commented 1 year ago

shouldn't changes to the service file be addressed in the actual code?

davidhaymond commented 1 year ago

Thanks for pointing that out; I didn't realize there was a reference in the main codebase. I'll create a pull request there as well.