This commit is contained in:
Brandon
2019-08-19 15:33:04 -05:00
parent 2f4690b638
commit ca90ceb2bb
2 changed files with 4 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
if [ ! -f /data/.config/mopidy.conf ]; then
if [ ! -r /data/.config/mopidy.conf ]; then
mkdir -p /data/.config && cp /defaults/mopidy.conf /data/.config
fi
trap "kill $PID" HUP INT TERM
su-exec mopidy mopidy --config /data/.config/mopidy.conf "${@}" &
PID=$!
wait $PID
wait $PID