From b432b1c165ba055598b9d28ebae0670e836fedd5 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 1 Dec 2024 01:40:56 +0800 Subject: [PATCH] update --- plugins/openresty/index.py | 2 +- plugins/openresty/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index d36710ab7..2a93c65f4 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -196,7 +196,7 @@ def confReplace(): # vhost vhost_dir = mw.getServerDir() + '/web_conf/nginx/vhost' vhost_tpl_dir = getPluginDir() + '/conf/vhost' - if os.path.exists(vhost_dir): + if not os.path.exists(vhost_dir): mw.execShell('mkdir -p ' + vhost_dir) vhost_list = ['0.websocket.conf', '0.nginx_status.conf'] diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index 4be1cad85..7b6f9b7fd 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -2,8 +2,8 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin export PATH -# cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4.2 -# cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4.2 +# cd /Users/midoks/Desktop/mwdev/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4 +# cd /www/server/mdserver-web/plugins/openresty && bash install.sh install 1.21.4 curPath=`pwd` rootPath=$(dirname "$curPath")