From d1cf69846333b1787c839aa53b08e042fc8f32a4 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 24 Aug 2019 03:21:17 -0500 Subject: [PATCH] Bump --- Dockerfile | 2 +- root/defaults/mopidy.conf | 2 +- root/usr/local/bin/entrypoint.sh | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1a8d81..a67aa15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ RUN \ COPY root/ / RUN chmod +x /usr/local/bin/run.sh RUN chmod +x /usr/local/bin/entrypoint.sh -EXPOSE 6600 6680 8000 1704 1705 +EXPOSE 1704 1705 6600 6680 8000 VOLUME /data /music /playlists LABEL description "Open source media server" diff --git a/root/defaults/mopidy.conf b/root/defaults/mopidy.conf index eecd525..64ad1ed 100755 --- a/root/defaults/mopidy.conf +++ b/root/defaults/mopidy.conf @@ -25,7 +25,7 @@ hostname = 0.0.0.0 [iris] snapcast_enabled = true -snapcast_host = snapserver +snapcast_host = 0.0.0.0 snapcast_port = 1705 country = US locale = en_US diff --git a/root/usr/local/bin/entrypoint.sh b/root/usr/local/bin/entrypoint.sh index 80ac064..f55326b 100644 --- a/root/usr/local/bin/entrypoint.sh +++ b/root/usr/local/bin/entrypoint.sh @@ -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