diff --git a/plugins/openresty/versions/1.29.2/install.sh b/plugins/openresty/versions/1.29.2/install.sh index 3e8db97de..cd8c49533 100644 --- a/plugins/openresty/versions/1.29.2/install.sh +++ b/plugins/openresty/versions/1.29.2/install.sh @@ -20,7 +20,7 @@ openrestyDir=${serverPath}/source/openresty Install_openresty() { - if [ "${1}" == "upgrade" ];then + if [ "${action}" == "install" ];then if [ -d $serverPath/openresty ];then exit 0 fi