summaryrefslogtreecommitdiff
path: root/user/nginx/nginx.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'user/nginx/nginx.pre-install')
-rw-r--r--user/nginx/nginx.pre-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/nginx/nginx.pre-install b/user/nginx/nginx.pre-install
new file mode 100644
index 000000000..ae5b6857a
--- /dev/null
+++ b/user/nginx/nginx.pre-install
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+addgroup -Sg 82 www-data 2>/dev/null
+addgroup -S nginx 2>/dev/null
+adduser -S -D -H -h /var/lib/nginx -s /sbin/nologin -G nginx -g nginx nginx 2>/dev/null
+addgroup nginx www-data 2>/dev/null
+
+exit 0