aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unit/unit.pre-install
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-07 14:19:58 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-07 14:32:55 +0200
commitf9bbb80e53c08d47ef2120b1e8e60e12f9c8f038 (patch)
treed2204c4d2d0a32e40d793fa8de71d5a5c120a130 /testing/unit/unit.pre-install
parent831ba5bb1c17ad245490643e73b0ce57e0ac585d (diff)
downloadaports-f9bbb80e53c08d47ef2120b1e8e60e12f9c8f038.tar.gz
aports-f9bbb80e53c08d47ef2120b1e8e60e12f9c8f038.tar.bz2
aports-f9bbb80e53c08d47ef2120b1e8e60e12f9c8f038.tar.xz
testing/unit: add init script
Diffstat (limited to 'testing/unit/unit.pre-install')
-rw-r--r--testing/unit/unit.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/unit/unit.pre-install b/testing/unit/unit.pre-install
new file mode 100644
index 0000000000..9674c8d671
--- /dev/null
+++ b/testing/unit/unit.pre-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S unit 2>/dev/null
+adduser -S -D -H -h /var/lib/unit -s /sbin/nologin -G unit -g "NGINX Unit" unit 2>/dev/null
+
+exit 0