summaryrefslogtreecommitdiff
path: root/system/vlc/vlc-daemon.pre-install
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-05 18:33:58 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-05 18:33:58 -0500
commit0e821fea155ad2d3419090b61a6c072db9d5d882 (patch)
tree09ac7b1aa58f6b17ce4dedf57d988ae6f786c6e5 /system/vlc/vlc-daemon.pre-install
parent47090a16fe7a91ce7f73784341726bdca75bd4aa (diff)
downloadpackages-0e821fea155ad2d3419090b61a6c072db9d5d882.tar.gz
packages-0e821fea155ad2d3419090b61a6c072db9d5d882.tar.bz2
packages-0e821fea155ad2d3419090b61a6c072db9d5d882.tar.xz
packages-0e821fea155ad2d3419090b61a6c072db9d5d882.zip
system/vlc: new package
Alpine will never merge Pulse support in, so why bother
Diffstat (limited to 'system/vlc/vlc-daemon.pre-install')
-rw-r--r--system/vlc/vlc-daemon.pre-install15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/vlc/vlc-daemon.pre-install b/system/vlc/vlc-daemon.pre-install
new file mode 100644
index 000000000..aed6c1893
--- /dev/null
+++ b/system/vlc/vlc-daemon.pre-install
@@ -0,0 +1,15 @@
+#!/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
+
+exit 0