aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unit/unit.pre-install
diff options
context:
space:
mode:
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