Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'auto/install')
-rw-r--r--auto/install14
1 files changed, 13 insertions, 1 deletions
diff --git a/auto/install b/auto/install
index 1ecf5a753..d1d608c98 100644
--- a/auto/install
+++ b/auto/install
@@ -1,4 +1,7 @@
+# Copyright (C) Igor Sysoev
+
+
cat << END >> $MAKEFILE
install:
test -d $PREFIX || mkdir -p $PREFIX
@@ -18,7 +21,7 @@ install:
cp conf/nginx.conf `dirname $CONF_PATH`/nginx.conf.default
test -d `dirname $PID_PATH` || mkdir -p `dirname $PID_PATH`
- test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
+
test -d `dirname $HTTP_LOG_PATH` || mkdir -p `dirname $HTTP_LOG_PATH`
test -d $PREFIX/html || cp -r html $PREFIX
@@ -27,6 +30,15 @@ install:
END
+if [ ".$ERROR_LOG_PATH" != "." ]; then
+ cat << END >> $MAKEFILE
+
+ test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
+END
+
+fi
+
+
if test ! -f Makefile; then
cat << END > Makefile