diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-22 12:45:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-22 12:46:07 +0000 |
commit | 1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb (patch) | |
tree | 92c104620b362e6bc4d8149e95e2695be821e1f9 /main/vlc/vlc-daemon.pre-install | |
parent | 7cb979f0f90f2644da24a049cb13e4c21861a857 (diff) | |
download | aports-1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb.tar.bz2 aports-1d14e8873a7f6445fe2fc4e2fc2ee35b7345e5eb.tar.xz |
main/vlc: make sure vlc user are in audio/video groups
fixes #874
Diffstat (limited to 'main/vlc/vlc-daemon.pre-install')
-rw-r--r-- | main/vlc/vlc-daemon.pre-install | 12 |
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 |