From e577f962a057179b558eac70af9eb94c99233be6 Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Thu, 31 Aug 2017 17:51:57 -0700 Subject: [PATCH] mirror-tarballs: apply new patches. --- util/mirror-tarballs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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)"