From 1cc4aee6f7cd3b5bc9b16b89d286954d4088a73a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 1 Dec 2024 01:23:14 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index d323af92f..d36710ab7 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -196,7 +196,9 @@ def confReplace(): # vhost vhost_dir = mw.getServerDir() + '/web_conf/nginx/vhost' vhost_tpl_dir = getPluginDir() + '/conf/vhost' - # print(vhost_dir, vhost_tpl_dir) + if os.path.exists(vhost_dir): + mw.execShell('mkdir -p ' + vhost_dir) + vhost_list = ['0.websocket.conf', '0.nginx_status.conf'] for f in vhost_list: a_conf = vhost_dir + '/' + f