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-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/nginx/nginx.pre-install b/user/nginx/nginx.pre-install
new file mode 100644
index 000000000..da22bde54
--- /dev/null
+++ b/user/nginx/nginx.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+groupadd -r -f -g 82 www-data >/dev/null
+useradd -d /var/lib/nginx -G www-data -r -M -s /sbin/nologin -U >/dev/null