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

@@ -25,6 +25,7 @@ RUN \
py-gobject@edge \ py-gobject@edge \
su-exec@edge \ su-exec@edge \
gstreamer@edge \ gstreamer@edge \
gst-plugins-base@edge \
gst-plugins-good@edge \ gst-plugins-good@edge \
gst-plugins-ugly@edge \ gst-plugins-ugly@edge \
&& pip install -U \ && pip install -U \
@@ -39,7 +40,7 @@ RUN \
&& addgroup -g ${PGID} mopidy \ && addgroup -g ${PGID} mopidy \
&& adduser -h /mopidy -s /bin/sh -D -G mopidy -u ${PUID} mopidy \ && adduser -h /mopidy -s /bin/sh -D -G mopidy -u ${PUID} mopidy \
&& echo "* Fixing privileges" \ && echo "* Fixing privileges" \
&& mkdir -p /data/.config /data/.cache \ && mkdir -p /data/{.config,.cache} \
&& chown -R mopidy:mopidy /data \ && chown -R mopidy:mopidy /data \
&& echo "* Cleaning up" \ && echo "* Cleaning up" \
&& rm -f /var/cache/apk/* \ && rm -f /var/cache/apk/* \

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/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 mkdir -p /data/.config && cp /defaults/mopidy.conf /data/.config
fi fi