|
8 | 8 | force=2ドル |
9 | 9 |
|
10 | 10 | ngx_redis_version=0.3.7 |
| 11 | +cd $home/work/nginx/ || exit 1 |
11 | 12 | ngx_redis_path=$home/work/nginx/ngx_http_redis-$ngx_redis_version |
| 13 | +rm -rf $ngx_redis_path || exit 1 |
| 14 | +tar -xzvf ngx_http_redis-$ngx_redis_version.tar.gz || exit 1 |
12 | 15 |
|
13 | 16 | cd $ngx_redis_path || exit 1 |
| 17 | + |
14 | 18 | patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-variables_in_redis_pass.patch |
15 | 19 | if [ ! -f $patch_file ]; then |
16 | 20 | echo "$patch_file: No such file" > /dev/stderr |
17 | 21 | exit 1 |
18 | 22 | fi |
19 | 23 | # we ignore any errors here since the target directory might have already been patched. |
20 | | -patch --forward -p1 < $patch_file |
| 24 | +patch -p1 < $patch_file || exit 1 |
| 25 | + |
| 26 | +cd $ngx_redis_path || exit 1 |
21 | 27 |
|
22 | 28 | patch_file=$root/../openresty/patches/ngx_http_redis-$ngx_redis_version-default_port_fix.patch |
23 | 29 | if [ ! -f $patch_file ]; then |
24 | 30 | echo "$patch_file: No such file" > /dev/stderr |
25 | 31 | exit 1 |
26 | 32 | fi |
27 | 33 | # we ignore any errors here since the target directory might have already been patched. |
28 | | -patch --forward -p1 < $patch_file |
| 34 | +patch -p1 < $patch_file||exit 1 |
29 | 35 |
|
30 | 36 | cd $root || exit 1 |
31 | 37 |
|
|
0 commit comments