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")