diff options
Diffstat (limited to 'user/vlc/vlc-daemon.pre-install')
-rw-r--r-- | user/vlc/vlc-daemon.pre-install | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/user/vlc/vlc-daemon.pre-install b/user/vlc/vlc-daemon.pre-install index aed6c1893..5ebf91ac7 100644 --- a/user/vlc/vlc-daemon.pre-install +++ b/user/vlc/vlc-daemon.pre-install @@ -1,15 +1,9 @@ #!/bin/sh -groups="vlc audio video" - -for group in $groups; do - addgroup -S $group 2>/dev/null -done -adduser -S -D -h /home/vlc -s /bin/sh -G vlc -g vlc vlc 2>/dev/null - -# make sure vlc are in all groups -for group in $groups; do - addgroup vlc $group 2>/dev/null -done +groupadd -r vlc 2>/dev/null +groupadd -r audio 2>/dev/null +groupadd -r video 2>/dev/null +useradd -c vlc -s /sbin/nologin -g vlc -G audio,video \ + -m -d /home/vlc -r vlc 2>/dev/null exit 0 |