From c96bb414feae4ce40da0b77c0e84f86c74d2e58f Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 13 Jun 2024 21:47:22 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 4dae1c3b8..81b800ac5 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -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