diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-11-06 18:39:28 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-11-06 18:39:28 +0000 |
| commit | 80eec93a5f7528b405f9cf0bfaa389ca8a2e5b81 (patch) | |
| tree | 78e53ab23d97e5ed9b364610acb95e72276b7b47 | |
| parent | 5fd6d349c89ed79d31b7dac4e70962a596c21aa8 (diff) | |
| download | nginx-80eec93a5f7528b405f9cf0bfaa389ca8a2e5b81.tar.gz nginx-80eec93a5f7528b405f9cf0bfaa389ca8a2e5b81.tar.bz2 | |
fix --group= vs --user=
Diffstat (limited to '')
| -rw-r--r-- | auto/os/features | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/auto/os/features b/auto/os/features index e8ae033d0..670de98a0 100644 --- 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 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" +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 + fi fi + else + NGX_GROUP=$NGX_USER fi - -else - NGX_GROUP=$NGX_USER fi |
