Commit 1d14e887 authored by Natanael Copa's avatar Natanael Copa

main/vlc: make sure vlc user are in audio/video groups

fixes #874
parent 7cb979f0
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=vlc
pkgver=1.1.13
pkgrel=0
pkgrel=1
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
pkgusers="vlc"
pkggroups="vlc"
......
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment