|
@@ -13,6 +13,8 @@ RUN python3 -m pip install Mopidy-Iris \
|
|
|
ADD ./data/mopidy/.config/mopidy/mopidy.conf /var/lib/mopidy/.config/mopidy/mopidy.conf
|
|
|
ADD ./data/etc/asound.conf /etc/asound.conf
|
|
|
|
|
|
+# Allow to restart the mopidy service from the web interface
|
|
|
+# Change gid to to allow /dev/snd access
|
|
|
RUN chown -R mopidy /var/lib/mopidy \
|
|
|
&& echo "mopidy ALL=NOPASSWD: /usr/lib/python?.?/site-packages/mopidy_iris/system.sh" >> /etc/sudoers \
|
|
|
&& sed -i /etc/passwd -e "/^mopidy.*/s/18/$gid_audio/"
|