aboutsummaryrefslogtreecommitdiff
path: root/apks/firefly3/firefly3.pre-install
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-11-07 20:25:24 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-11-07 21:27:46 +0000
commit8bfb6b9bd5333085c5cccbffdb298fd1c37997a5 (patch)
tree4a62a768f69eddfe185a447d50581881c53df589 /apks/firefly3/firefly3.pre-install
parent400ba1808f11f8e4814df6bdb17861d856efb107 (diff)
downloadapkbuilds-8bfb6b9bd5333085c5cccbffdb298fd1c37997a5.tar.gz
apkbuilds-8bfb6b9bd5333085c5cccbffdb298fd1c37997a5.tar.bz2
apkbuilds-8bfb6b9bd5333085c5cccbffdb298fd1c37997a5.zip
fix: Fix firefly location and permission
Firefly was being copied into the wrong folder with root permission. Now it is on `www` which is what I use for it.
Diffstat (limited to 'apks/firefly3/firefly3.pre-install')
-rw-r--r--apks/firefly3/firefly3.pre-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/apks/firefly3/firefly3.pre-install b/apks/firefly3/firefly3.pre-install
new file mode 100644
index 0000000..74f1b59
--- /dev/null
+++ b/apks/firefly3/firefly3.pre-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+user=www-data
+group=www-data
+
+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