media-sound/navidrome-bin: create log dir

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2024-03-22 13:45:31 +01:00
parent f0b2d0fdb3
commit 0e2e28008b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,7 @@ command_user="navidrome:navidrome"
command_background=1 command_background=1
pidfile="/run/navidrome.pid" pidfile="/run/navidrome.pid"
directory="${navidrome_home}" directory="${navidrome_home}"
output_log="/var/log/navidrome.log" output_log="/var/log/navidrome/navidrome.log"
error_log="${output_log}" error_log="${output_log}"
depend() { depend() {

View File

@ -39,6 +39,8 @@ src_install() {
insinto /var/lib/navidrome insinto /var/lib/navidrome
doins navidrome.toml doins navidrome.toml
fowners -R navidrome:navidrome /var/lib/navidrome fowners -R navidrome:navidrome /var/lib/navidrome
keepdir /var/log/navidrome
fowners navidrome:navidrome /var/log/navidrome
systemd_dounit "${FILESDIR}"/navidrome.service systemd_dounit "${FILESDIR}"/navidrome.service
newinitd "${FILESDIR}"/navidrome.initd navidrome newinitd "${FILESDIR}"/navidrome.initd navidrome