Update index.py

This commit is contained in:
Mr Chen 2024-06-13 21:47:22 +08:00
parent d428d0ff03
commit c96bb414fe
1 changed files with 5 additions and 5 deletions

View File

@ -177,11 +177,11 @@ def deleteConfList(version):
def phpFpmReplace(version):
desc_php_fpm = getServerDir() + '/' + version + '/fpm/php-fpm.conf'
if not os.path.exists(desc_php_fpm):
tpl_php_fpm = getPluginDir() + '/conf/php-fpm.conf'
content = mw.readFile(tpl_php_fpm)
content = contentReplace(content, version)
mw.writeFile(desc_php_fpm, content)
tpl_php_fpm = getPluginDir() + '/conf/php-fpm.conf'
content = mw.readFile(tpl_php_fpm)
content = contentReplace(content, version)
mw.writeFile(desc_php_fpm, content)
return True