aboutsummaryrefslogtreecommitdiffstats
path: root/community/unit/unit.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/unit/unit.pre-install')
-rw-r--r--community/unit/unit.pre-install6
1 files changed, 6 insertions, 0 deletions
diff --git a/community/unit/unit.pre-install b/community/unit/unit.pre-install
new file mode 100644
index 0000000000..9674c8d671
--- /dev/null
+++ b/community/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