Skip to content

Commit

Permalink
util/build.sh: nginx now supports builtin upstream keepalive module; …
Browse files Browse the repository at this point in the history
…also make sure redis patch is applied.
  • Loading branch information
chipitsine authored and agentzh committed Jun 4, 2016
1 parent 1608c19 commit 4368a46
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions util/build.sh
Expand Up @@ -11,7 +11,13 @@ ngx_redis_version=0.3.7
ngx_redis_path=$home/work/nginx/ngx_http_redis-$ngx_redis_version

cd $ngx_redis_path || exit 1
patch --forward -p1 < $root/../ngx_openresty/patches/ngx_http_redis-$ngx_redis_version-variables_in_redis_pass.patch
patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-variables_in_redis_pass.patch
if [ ! -f $patch_file ]; then
echo "$patch_file: No such file" > /dev/stderr
exit 1
fi
# we ignore any errors here since the target directory might have already been patched.
patch --forward -p1 < $patch_file
cd $root || exit 1

#--without-http_memcached_module \
Expand All @@ -33,7 +39,6 @@ ngx-build $force $version \
--add-module=$root/../echo-nginx-module \
--add-module=$root $opts \
--add-module=$root/../lua-nginx-module \
--add-module=$home/work/nginx/ngx_http_upstream_keepalive-0.7 \
--with-select_module \
--with-poll_module \
--with-debug
Expand Down

0 comments on commit 4368a46

Please sign in to comment.