From e55856b7ccaa237c562261e245c97940c9018f8f Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 28 Jun 2020 13:49:44 +0800 Subject: [PATCH] up --- plugins/openresty/versions/1.11.2/install.sh | 47 ------------------- plugins/openresty/versions/1.13.6/install.sh | 45 ------------------ plugins/openresty/versions/install.sh | 49 -------------------- 3 files changed, 141 deletions(-) delete mode 100755 plugins/openresty/versions/1.11.2/install.sh delete mode 100755 plugins/openresty/versions/1.13.6/install.sh delete mode 100755 plugins/openresty/versions/install.sh diff --git a/plugins/openresty/versions/1.11.2/install.sh b/plugins/openresty/versions/1.11.2/install.sh deleted file mode 100755 index f4532efd4..000000000 --- a/plugins/openresty/versions/1.11.2/install.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") - - -install_tmp=${rootPath}/tmp/mw_install.pl -openrestyDir=${serverPath}/source/openresty - -Install_openresty() -{ - mkdir -p ${openrestyDir} - echo '正在安装脚本文件...' > $install_tmp - - if [ ! -f ${openrestyDir}/openresty-1.11.2.5.tar.gz ];then - wget -O ${openrestyDir}/openresty-1.11.2.5.tar.gz https://openresty.org/download/openresty-1.11.2.5.tar.gz - fi - - - cd ${openrestyDir} && tar -zxvf openresty-1.11.2.5.tar.gz - - cd ${openrestyDir}/openresty-1.11.2.5 && ./configure --prefix=$serverPath/openresty \ - --with-http_v2_module \ - --with-openssl=$serverPath/source/lib/openssl-1.0.2q \ - --with-http_stub_status_module && make && make install && \ - echo '1.11.2' > $serverPath/openresty/version.pl - - - echo '安装完成' > $install_tmp -} - -Uninstall_openresty() -{ - rm -rf $serverPath/openresty - echo '卸载完成' > $install_tmp -} - -action=$1 -if [ "${1}" == 'install' ];then - Install_openresty -else - Uninstall_openresty -fi diff --git a/plugins/openresty/versions/1.13.6/install.sh b/plugins/openresty/versions/1.13.6/install.sh deleted file mode 100755 index db2a64424..000000000 --- a/plugins/openresty/versions/1.13.6/install.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") - -install_tmp=${rootPath}/tmp/mw_install.pl - -openrestyDir=${serverPath}/source/openresty - -Install_openresty() -{ - mkdir -p ${openrestyDir} - echo '正在安装脚本文件...' > $install_tmp - - if [ ! -f ${openrestyDir}/openresty-1.13.6.2.tar.gz ];then - wget -O ${openrestyDir}/openresty-1.13.6.2.tar.gz https://openresty.org/download/openresty-1.13.6.2.tar.gz - fi - - cd ${openrestyDir} && tar -zxvf openresty-1.13.6.2.tar.gz - - cd ${openrestyDir}/openresty-1.13.6.2 && ./configure --prefix=$serverPath/openresty \ - --with-http_v2_module \ - --with-openssl=$serverPath/source/lib/openssl-1.0.2q \ - --with-http_stub_status_module \ - && make && make install && \ - echo '1.13.6' > $serverPath/openresty/version.pl - - echo '安装完成' > $install_tmp -} - -Uninstall_openresty() -{ - rm -rf $serverPath/openresty - echo '卸载完成' > $install_tmp -} -action=$1 -if [ "${1}" == 'install' ];then - Install_openresty -else - Uninstall_openresty -fi diff --git a/plugins/openresty/versions/install.sh b/plugins/openresty/versions/install.sh deleted file mode 100755 index dcd7c82aa..000000000 --- a/plugins/openresty/versions/install.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash -PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin -export PATH - -curPath=`pwd` -rootPath=$(dirname "$curPath") -rootPath=$(dirname "$rootPath") -serverPath=$(dirname "$rootPath") - - -VERSION=$1 - -install_tmp=${rootPath}/tmp/mw_install.pl -openrestyDir=${serverPath}/source/openresty - -Install_openresty() -{ - mkdir -p ${openrestyDir} - echo '正在安装脚本文件...' > $install_tmp - - if [ ! -f ${openrestyDir}/openresty-${VERSION}.tar.gz ];then - wget -O ${openrestyDir}/openresty-${VERSION}.tar.gz https://openresty.org/download/openresty-${VERSION}.tar.gz - fi - - - cd ${openrestyDir} && tar -zxvf openresty-${VERSION}.tar.gz - - cd ${openrestyDir}/openresty-${VERSION} && ./configure --prefix=$serverPath/openresty \ - --with-http_v2_module \ - --with-openssl=$serverPath/source/lib/openssl-1.0.2q \ - --with-http_stub_status_module && make && make install && \ - echo "${VERSION}" > $serverPath/openresty/version.pl - - - echo '安装完成' > $install_tmp -} - -Uninstall_openresty() -{ - rm -rf $serverPath/openresty - echo '卸载完成' > $install_tmp -} - -action=$1 -if [ "${1}" == 'install' ];then - Install_openresty -else - Uninstall_openresty -fi