diff --git a/util/mirror-tarballs b/util/mirror-tarballs index 34ef54f..010b2ff 100755 --- a/util/mirror-tarballs +++ b/util/mirror-tarballs @@ -41,6 +41,21 @@ if [ "$answer" = "N" ]; then echo fi +answer=`$root/util/ver-ge "$main_ver" 1.13.3` +if [ "$answer" = "Y" ]; then + echo "$info_txt applying the stream_balancer_export patch for nginx" + patch -p1 < $root/patches/nginx-$main_ver-stream_balancer_export.patch || exit 1 + echo + + echo "$info_txt applying the stream_proxy_get_next_upstream_tries patch for nginx" + patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_get_next_upstream_tries.patch || exit 1 + echo + + echo "$info_txt applying the stream_proxy_timeout_fields patch for nginx" + patch -p1 < $root/patches/nginx-$main_ver-stream_proxy_timeout_fields.patch || exit 1 + echo +fi + answer=`$root/util/ver-ge "$main_ver" 1.5.12` if [ "$answer" = "N" ]; then echo "$info_txt applying the patch for nginx security advisory (CVE-2014-0133)"