From e47bc2ff0265621d39351cf69b125ea892e51fde Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Feb 2017 00:11:53 +0100 Subject: [PATCH] Fix --- install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 install.sh diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 3b53e74..8ad81fe --- a/install.sh +++ b/install.sh @@ -55,13 +55,13 @@ else fi if [ "{$DIST}" == "Fedora" ]; then - dnf install gcc gcc-c++ autoconf automake -y + dnf install gcc gcc-c++ autoconf automake make -y elif [ "{$DIST}" == "Ubuntu" ] || [ "${DIST}" == "Debian" ]; then - apt-get install gcc g++ autoconf automake -y + apt-get install gcc g++ autoconf automake make -y elif [ "{$DIST}" == "CentOS" ]; then - yum install gcc gcc-c++ autoconf automake -y + yum install gcc gcc-c++ autoconf automake make -y elif [ "${DistroBasedOn}" == "suse" ]; then - zypper install gcc gcc-c++ autoconf automake -y + zypper install -y gcc gcc-c++ autoconf automake make -y fi cd pcre-8.40 @@ -79,6 +79,10 @@ cd openssl-1.0.2f make make install cd .. +cd ngx_pagespeed-latest-beta +wget https://dl.google.com/dl/page-speed/psol/1.12.34.2-x64.tar.gz +tar -xzvf 1.12.34.2-x64.tar.gz +cd .. ./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=pcre-8.40 --with-zlib=zlib-1.2.11 --with-http_ssl_module --with-stream --with-mail=dynamic --with-ipv6 --with-http_v2_module --with-http_realip_module --with-http_dav_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_slice_module --with-http_stub_status_module --with-http_addition_module --add-module=naxsi-0.55.3 --add-module=ngx-fancyindex --add-dynamic-module=headers-more-nginx-module-0.32 --add-module=ngx_pagespeed-latest-beta make