From dcaf4afbc057d7e376f4f6cda308e96946b97695 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 8 Jul 2022 01:20:31 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index fd678f099..3cece80cb 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -567,8 +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/* | grep -v '^;' |tr -s '\n'") + content = mw.execShell( + 'cat /etc/php/' + version + '/fpm/conf.d/*' + " | grep -v '^;' |tr -s '\n'") content = content[0] libpath = getPluginDir() + '/versions/phplib.conf'