Browse Source

added comments

Toastie 1 year ago
parent
commit
a011e1ef12
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mopidy/Dockerfile

+ 2 - 0
mopidy/Dockerfile

@@ -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/"