From 8ec74d6dc3514c29e1a1a9609fbaa9fcb798583b Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 7 Jul 2022 17:38:05 +0800 Subject: [PATCH] Update index.py --- plugins/php-yum/index.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py index 36d4da4b9..ff4595252 100755 --- a/plugins/php-yum/index.py +++ b/plugins/php-yum/index.py @@ -524,12 +524,11 @@ def setDisableFunc(version): def checkPhpinfoFile(v): sdir = mw.getServerDir() dfile = sdir + '/web_conf/php/status/phpinfo_' + v + '.conf' - if not os.path.exists(dfile): - tpl = getPluginDir() + '/conf/phpinfo.conf' - content = mw.readFile(tpl) - content = contentReplace(content, v) - mw.writeFile(dfile, content) - mw.restartWeb() + tpl = getPluginDir() + '/conf/phpinfo.conf' + content = mw.readFile(tpl) + content = contentReplace(content, v) + mw.writeFile(dfile, content) + mw.restartWeb() def getPhpinfo(v):