summaryrefslogtreecommitdiff
path: root/kodi-rpi/kodi-gbm.pre-install
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-02-13 08:31:23 +0100
committerKarel Kočí <cynerd@email.cz>2020-02-13 08:31:23 +0100
commit3ec4d97a54ea72054638fec340bd58819b30ec01 (patch)
tree305f6e726d0f7571ca8cffe7dfd09fb59e3bcf2f /kodi-rpi/kodi-gbm.pre-install
parent3051cb1d103c8e600346a1a5be268c1343c54f46 (diff)
downloadalpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.tar.gz
alpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.tar.bz2
alpine-personal-pkgs-3ec4d97a54ea72054638fec340bd58819b30ec01.zip
kodi-rpi: rename from kodi and try to improve and clean
Diffstat (limited to 'kodi-rpi/kodi-gbm.pre-install')
-rw-r--r--kodi-rpi/kodi-gbm.pre-install10
1 files changed, 10 insertions, 0 deletions
diff --git a/kodi-rpi/kodi-gbm.pre-install b/kodi-rpi/kodi-gbm.pre-install
new file mode 100644
index 0000000..03b2e52
--- /dev/null
+++ b/kodi-rpi/kodi-gbm.pre-install
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+addgroup -S kodi 2>/dev/null
+adduser -S -D -h /var/lib/kodi -s /sbin/nologin -G kodi kodi 2>/dev/null
+
+for group in video audio input; do
+ adduser kodi $group 2>/dev/null
+done
+
+exit 0