summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2014-05-14 17:27:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-14 17:27:23 +0700
commit641ac5e31c3ec46b5bf87e23063347abcfbf0b07 (patch)
tree9c6ac5b731d479860f24213e9f3a64eaad9971e5
parent186bd9ef89e2197e66c97bb7f3e6c5347291addc (diff)
downloadslackbuilds-641ac5e31c3ec46b5bf87e23063347abcfbf0b07.tar.gz
network/nginx: Fix temp directory path.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--network/nginx/nginx.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild
index c9cfa73a92..cacb896c7c 100644
--- a/network/nginx/nginx.SlackBuild
+++ b/network/nginx/nginx.SlackBuild
@@ -29,7 +29,7 @@
PRGNAM=nginx
VERSION=${VERSION:-1.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -103,6 +103,11 @@ CXXFLAGS="$SLKCFLAGS" \
--group=${NGINXGROUP:=nogroup} \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
+ --http-client-body-temp-path=/var/lib/nginx/client_body \
+ --http-proxy-temp-path=/var/lib/nginx/proxy \
+ --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
+ --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
+ --http-scgi-temp-path=/var/lib/nginx/scgi \
--with-file-aio \
--with-ipv6 \
--with-select_module \
@@ -145,6 +150,10 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
find $PKG -perm 444 -exec chmod 0644 {} \;
find $PKG -perm 555 -exec chmod 0755 {} \;
+# Make the temp path.
+mkdir -p $PKG/var/lib/$PRGNAM
+chmod 0700 $PKG/var/lib/$PRGNAM
+
# Move html directory
mkdir -p $PKG/var/www
mv $PKG/usr/html $PKG/var/www