aboutsummaryrefslogtreecommitdiff
path: root/apks/jellyfin/jellyfin.pre-install
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
commit79c054a4536b9f21fa8e98513afb2cbcd799f71e (patch)
treec7ef92b79d49b9fd957903f0e8cf2e7a13acb14d /apks/jellyfin/jellyfin.pre-install
parent0204e511bd3a183291c0582d51ee0f0c177754ec (diff)
downloadapkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.gz
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.bz2
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.zip
feat: Add jellyfin
Add jellyfin to avoid importing the whole edge repo.
Diffstat (limited to 'apks/jellyfin/jellyfin.pre-install')
-rw-r--r--apks/jellyfin/jellyfin.pre-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/apks/jellyfin/jellyfin.pre-install b/apks/jellyfin/jellyfin.pre-install
new file mode 100644
index 0000000..6e64716
--- /dev/null
+++ b/apks/jellyfin/jellyfin.pre-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+user=jellyfin
+group=jellyfin
+
+addgroup -S $group 2>/dev/null
+adduser -S -D -h /var/lib/$user -s /sbin/nologin -G $group -g $user $user 2>/dev/null
+
+exit 0