Update index.py

This commit is contained in:
dami
2026-10-17 13:28:22 +08:00
parent a0e51c75fe
commit e77ae8763b
+4 -4
View File
@@ -164,19 +164,19 @@ def makeOpenrestyConf():
sdir = mw.getServerDir()
dst_dir = sdir + '/web_conf/rapira'
dst_dir = sdir + '/web_conf/php'
if not os.path.exists(dst_dir):
mw.execShell('mkdir -p ' + dst_dir)
dst_dir_conf = sdir + '/web_conf/rapira/conf'
dst_dir_conf = sdir + '/web_conf/php/conf'
if not os.path.exists(dst_dir_conf):
mw.execShell('mkdir -p ' + dst_dir_conf)
dst_dir_upstream = sdir + '/web_conf/rapira/upstream'
dst_dir_upstream = sdir + '/web_conf/php/upstream'
if not os.path.exists(dst_dir_upstream):
mw.execShell('mkdir -p ' + dst_dir_upstream)
dst_pathinfo = sdir + '/web_conf/rapira/pathinfo.conf'
dst_pathinfo = sdir + '/web_conf/php/pathinfo.conf'
if not os.path.exists(dst_pathinfo):
src_pathinfo = getPluginDir() + '/conf/pathinfo.conf'
shutil.copyfile(src_pathinfo, dst_pathinfo)