From c531cc9a44c44b4f0955f2cf92d80a0353f2e6f0 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 29 Jun 2022 09:29:57 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index f84e8d2b5..5958f2c47 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -86,15 +86,6 @@ def getInitDTpl(): return path -def makeConf(): - vhost = getServerDir() + '/nginx/conf/vhost' - if not os.path.exists(vhost): - os.mkdir(vhost) - php_status = getServerDir() + '/nginx/conf/php_status' - if not os.path.exists(php_status): - os.mkdir(php_status) - - def getFileOwner(filename): import pwd stat = os.lstat(filename) @@ -192,9 +183,6 @@ def initDreplace(): mw.writeFile(systemService, se_content) mw.execShell('systemctl daemon-reload') - # make nginx vhost or other - makeConf() - return file_bin