This commit is contained in:
Brandon
2019-08-18 10:32:38 -05:00
parent 2b26f85fb1
commit 38f347eed0
3 changed files with 2 additions and 3 deletions

23
root/data/.config/mopidy.conf Executable file
View File

@@ -0,0 +1,23 @@
[core]
cache_dir = /data/.cache
config_dir = /data/.config
data_dir = /data
[file]
media_dirs = /music|Music
[local]
library = images
media_dir = /music
[local-images]
library = sqlite
[m3u]
playlists_dir = /playlists
[http]
hostname = 0.0.0.0
[mpd]
hostname = 0.0.0.0

10
root/usr/local/bin/run.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
function stop() {
kill $PID
}
trap stop HUP INT TERM
su-exec mopidy mopidy --config "/data/.config/mopidy.conf" "${@}" &
PID=$!
wait $PID