Skip to content
Snippets Groups Projects
Commit c5b7fe01 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/nginx: create and use an nginx user and www-data group

ref #2245
parent 71f74b58
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,12 @@
pkgname=nginx
pkgver=1.4.3
pkgrel=0
pkgrel=1
pkgdesc="lightweight HTTP and reverse proxy server"
url="http://www.nginx.org"
arch="all"
license="Custom"
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="pcre-dev openssl-dev zlib-dev"
source="http://nginx.org/download/$pkgname-$pkgver.tar.gz
nginx.initd
......@@ -36,8 +37,8 @@ build() {
--http-client-body-temp-path=/tmp/$pkgname/client-body \
--http-proxy-temp-path=/tmp/$pkgname/proxy \
--http-fastcgi-temp-path=/tmp/$pkgname/fastcgi \
--user=http \
--group=http \
--user=nginx \
--group=nginx \
--with-ipv6 \
--with-pcre-jit \
--with-http_ssl_module \
......
#!/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
nginx.pre-install
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment