Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c836bc5

Browse files
committed
util/build.sh: abort when the ngx_http_redis module patch is not in place. thanks Ilya Shipitsin for the report in openresty#49.
1 parent 962b08e commit c836bc5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎util/build.sh‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# this file is mostly meant to be used by the author himself.
3+
# this file is only meant to be used by the module developers.
44

55
root=`pwd`
66
version=1ドル
@@ -11,7 +11,13 @@ ngx_redis_version=0.3.7
1111
ngx_redis_path=$home/work/nginx/ngx_http_redis-$ngx_redis_version
1212

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

1723
#--without-http_memcached_module \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /