aboutsummaryrefslogtreecommitdiffstats
path: root/main/vlc/vlc-daemon.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/vlc/vlc-daemon.pre-install')
-rw-r--r--main/vlc/vlc-daemon.pre-install12
1 files changed, 10 insertions, 2 deletions
diff --git a/main/vlc/vlc-daemon.pre-install b/main/vlc/vlc-daemon.pre-install
index 45f66bff6b..17473498c9 100644
--- a/main/vlc/vlc-daemon.pre-install
+++ b/main/vlc/vlc-daemon.pre-install
@@ -1,5 +1,13 @@
#!/bin/sh
-addgroup -S vlc 2>/dev/null
-adduser -S -h /home/vlc -s /bin/sh -G vlc -G audio -G video -D vlc &>/dev/null
+groups="vlc audio video"
+for group in $groups do
+ addgroup -S $group 2>/dev/null
+done
+adduser -S -h /home/vlc -s /bin/sh -G vlc -D vlc 2>/dev/null
+
+# make sure vlc are in all groups
+for group in $groups do
+ addgroup vlc $group 2>/dev/null
+done
exit 0