Update index.py

pull/601/head
Mr Chen 11 months ago
parent cd48a580af
commit f0fd643ef0
  1. 4
      plugins/php-yum/index.py

@ -751,8 +751,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'")
cmd = 'cat /etc/opt/remi/php' +version + "/php.d/* | grep -v '^;' |tr -s '\n'"
content = mw.execShell(cmd)
content = content[0]
libpath = getPluginDir() + '/versions/phplib.conf'

Loading…
Cancel
Save