diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-28 11:03:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-28 12:07:25 +0000 |
commit | c5b7fe019808ce1a437895a65816f8d2b13ec79d (patch) | |
tree | 8581a4b2a7f1effbe99ca383b37158017a58afc9 /main/nginx/nginx.pre-install | |
parent | 71f74b583df0e1be3189e91c3e19ff58c975dea7 (diff) | |
download | aports-c5b7fe019808ce1a437895a65816f8d2b13ec79d.tar.bz2 aports-c5b7fe019808ce1a437895a65816f8d2b13ec79d.tar.xz |
main/nginx: create and use an nginx user and www-data group
ref #2245
Diffstat (limited to 'main/nginx/nginx.pre-install')
-rw-r--r-- | main/nginx/nginx.pre-install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/nginx/nginx.pre-install b/main/nginx/nginx.pre-install index 8d0a58c6f8..55b5bfcda5 100644 --- a/main/nginx/nginx.pre-install +++ b/main/nginx/nginx.pre-install @@ -1,5 +1,9 @@ #!/bin/sh -addgroup nginx 2>/dev/null -adduser -S -H -h /dev/null -s /sbin/nologin -D -G nginx nginx 2>/dev/null +addgroup -g 82 -S www-data 2>/dev/null +addgroup -S nginx 2>/dev/null +adduser -S -G nginx -H -h /var/www/localhost/htdocs -s /sbin/nologin \ + -D nginx 2>/dev/null +addgroup nginx www-data 2>/dev/null + exit 0 |