Permalink
Browse files

update inc/nginx_upgrade.inc ensure latest HTTP/2 patch applied

on subsequent Nginx upgrade/recompiles if existing Nginx server is compiled with HTTP/2 patch already
  • Loading branch information...
centminmod committed Aug 15, 2015
1 parent e84b102 commit 26a613861605738e269f6dda2f87be1134a0b4d1
Showing with 7 additions and 0 deletions.
  1. +7 −0 inc/nginx_upgrade.inc
View
@@ -359,6 +359,13 @@ if [[ "$NGINXPATCH" = [nN] || "$NGINX_HTTP2" = [nN] ]]; then
rm -rf nginx-${ngver}*
fi
if [[ "$(nginx -V 2>&1 | grep -Eo 'with-http_v2_module')" = 'with-http_v2_module' ]]; then
# if existing Nginx server is detected to have HTTP/2 patch compiled, then
# wipe nginx download source and redownload a fresh copy to ensure you're
# patching with latest patch http://nginx.org/patches/http2/ available
rm -rf nginx-${ngver}*
fi
echo "Compiling nginx..."
if [ -s nginx-${ngver}.tar.gz ]; then
cecho "nginx ${ngver} Archive found, skipping download..." $boldgreen

0 comments on commit 26a6138

Please sign in to comment.