From 30f499f3cd96cd650bfad56d1e5a0fd11ae04553 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 3 Apr 2026 03:22:17 +0800 Subject: [PATCH] update --- plugins/openresty/versions/1.17.8/install.sh | 6 ++++-- plugins/openresty/versions/1.19.3/install.sh | 6 ++++-- plugins/openresty/versions/1.21.4/install.sh | 6 ++++-- plugins/openresty/versions/1.25.3/install.sh | 6 ++++-- plugins/openresty/versions/1.27.1/install.sh | 6 ++++-- plugins/openresty/versions/1.29.2/install.sh | 1 - 6 files changed, 20 insertions(+), 11 deletions(-) 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