diff --git a/plugins/openresty/versions/1.17.8/install.sh b/plugins/openresty/versions/1.17.8/install.sh index b39d96f91..051a3a9db 100644 --- a/plugins/openresty/versions/1.17.8/install.sh +++ b/plugins/openresty/versions/1.17.8/install.sh @@ -19,8 +19,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.19.3/install.sh b/plugins/openresty/versions/1.19.3/install.sh index 3d7002516..f81e6b2be 100644 --- a/plugins/openresty/versions/1.19.3/install.sh +++ b/plugins/openresty/versions/1.19.3/install.sh @@ -19,8 +19,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.21.4/install.sh b/plugins/openresty/versions/1.21.4/install.sh index 6062e7303..01b56bf5c 100644 --- a/plugins/openresty/versions/1.21.4/install.sh +++ b/plugins/openresty/versions/1.21.4/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.25.3/install.sh b/plugins/openresty/versions/1.25.3/install.sh index ca624ccf7..55584a5fa 100644 --- a/plugins/openresty/versions/1.25.3/install.sh +++ b/plugins/openresty/versions/1.25.3/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.27.1/install.sh b/plugins/openresty/versions/1.27.1/install.sh index 4ec9269d2..046df91a4 100644 --- a/plugins/openresty/versions/1.27.1/install.sh +++ b/plugins/openresty/versions/1.27.1/install.sh @@ -20,8 +20,10 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ -d $serverPath/openresty ];then - exit 0 + if [ "${action}" == "install" ];then + if [ -d $serverPath/openresty ];then + exit 0 + fi fi # ----- cpu start ------ diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index a5da7174b..cd8c49533 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,7 +20,6 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - echo "action:${action}" if [ "${action}" == "install" ];then if [ -d $serverPath/openresty ];then exit 0