This commit is contained in:
Brandon
2019-08-23 23:01:21 -05:00
parent 362bcf52f7
commit e8abccfb93
6 changed files with 6 additions and 61 deletions

View File

@@ -7,16 +7,6 @@ if [ ! -r /data/.config/mopidy.conf ]; then
cp /defaults/mopidy.conf /data/.config
fi
if [ ! -r /data/.config/icecast.xml ]; then
mkdir -p /data/.config
cp /defaults/icecast.xml /data/.config
fi
if [ ! -r /data/logs ]; then
mkdir -p /data/logs/mopidy
mkdir -p /data/logs/icecast
fi
chown -R mopidy:mopidy /data
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan

View File

@@ -1,7 +1,6 @@
#!/bin/sh
trap "kill $PID" HUP INT TERM
su-exec mopidy icecast -c /data/.config/icecast.xml -b &
su-exec mopidy mopidy --config /data/.config/mopidy.conf "${@}" &
PID=$!
wait $PID