chiark / gitweb /
Add jukebox user to audio group in debian setup
authorRichard Kettlewell <rjk@greenend.org.uk>
Fri, 6 Jun 2008 15:46:45 +0000 (16:46 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Fri, 6 Jun 2008 15:46:45 +0000 (16:46 +0100)
debian/postinst.disorder-server

index 222d4f2..9e51648 100755 (executable)
@@ -26,6 +26,9 @@ set -e
 add_jukebox_user() {
   adduser --quiet --system --group --shell /bin/sh --home /var/lib/disorder \
     --no-create-home jukebox
+  # If it happens that there's no audio group we don't fail; perhaps only
+  # network play was required.
+  adduser --quiet jukebox audio || true
 }
 
 configure_init_d() {