From 48a79d907cec57b28ace8873ff685958846990cb Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 7 Jul 2022 21:44:45 +0800 Subject: [PATCH] Update index.py --- plugins/php-yum/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py index afc2924b9..1580a8313 100755 --- a/plugins/php-yum/index.py +++ b/plugins/php-yum/index.py @@ -567,7 +567,8 @@ def getLibConf(version): return mw.returnJson(False, '指定PHP版本不存在!') # phpini = mw.readFile(fname) - content = mw.execShell('cat /etc/opt/remi/php' + version + '/php.d/*') + content = mw.execShell('cat /etc/opt/remi/php' + + version + '/php.d/* | grep -v "^;"') content = content[0] libpath = getPluginDir() + '/versions/phplib.conf'