This commit is contained in:
Brandon
2019-08-24 03:21:17 -05:00
parent 8683c4e24a
commit d1cf698463
3 changed files with 8 additions and 3 deletions

View File

@@ -13,11 +13,16 @@ if [ ! -r /data/.config/icecast.xml ]; then
fi
if [ ! -r /data/icecast ]; then
mkdir -p /data/icecast/logs
mkdir -p /data/icecast/web /data/icecast/logs /data/icecast/admin
cp -r /usr/share/icecast /data/icecast
cp /defaults/silence.mp3 /data/icecast/web/silence.mp3
fi
if [ ! -r /tmp/snapfifo ]; then
touch /tmp/snapfifo
chown mopidy:mopidy /tmp/snapfifo
fi
chown -R mopidy:mopidy /data
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan