diff auto/os/features @ 256:2e9c57a5e50a NGINX_0_4_13

nginx 0.4.13 *) Feature: the "proxy_pass" directive may be used inside the "limit_except" block. *) Feature: the "limit_except" directive supports all WebDAV methods. *) Bugfix: if the "add_before_body" directive was used without the "add_after_body" directive, then an response did not transferred complete. *) Bugfix: a large request body did not receive if the epoll method and the deferred accept() were used. *) Bugfix: a charset could not be set for ngx_http_autoindex_module responses; bug appeared in 0.3.50. *) Bugfix: the "[alert] zero size buf" error when FastCGI server was used; *) Bugfix: the --group= configuration parameter was ignored. Thanks to Thomas Moschny. *) Bugfix: the 50th subrequest in SSI response did not work; bug appeared in 0.3.50.
author Igor Sysoev <http://sysoev.ru>
date Wed, 15 Nov 2006 00:00:00 +0300
parents 1b490fc19afa
children 6ae1357b7b7c
line wrap: on
line diff
--- a/auto/os/features
+++ b/auto/os/features
@@ -4,24 +4,25 @@
 
 NGX_USER=${NGX_USER:-nobody}
 
-if [ -z "$NGX_GROUP" -a $NGX_USER = nobody ] ; then
-    if grep nobody /etc/group 2>&1 >/dev/null; then
-        echo "checking for nobody group ... found"
-        NGX_GROUP=nobody
-    else
-        echo "checking for nobody group ... not found"
+if [ -z "$NGX_GROUP" ]; then
+    if [ $NGX_USER = nobody ]; then
+        if grep nobody /etc/group 2>&1 >/dev/null; then
+            echo "checking for nobody group ... found"
+            NGX_GROUP=nobody
+        else
+            echo "checking for nobody group ... not found"
 
-        if grep nogroup /etc/group 2>&1 >/dev/null; then
-            echo "checking for nogroup group ... found"
-            NGX_GROUP=nogroup
-        else
-            echo "checking for nogroup group ... not found"
-            NGX_GROUP=nobody
+            if grep nogroup /etc/group 2>&1 >/dev/null; then
+                echo "checking for nogroup group ... found"
+                NGX_GROUP=nogroup
+            else
+                echo "checking for nogroup group ... not found"
+                NGX_GROUP=nobody
+            fi
         fi
+    else
+        NGX_GROUP=$NGX_USER
     fi
-
-else
-    NGX_GROUP=$NGX_USER
 fi