Update index.py

pull/618/head
Mr Chen 10 months ago
parent 38c7b2d44e
commit 442896eadc
  1. 5
      plugins/php-yum/index.py

@ -836,7 +836,7 @@ def opcacheBlacklistFile():
return op_bl
def installPreInspection(version):
try:
cmd = "cat /etc/*-release | grep PRETTY_NAME |awk -F = '{print $2}' | awk -F '\"' '{print $2}'| awk '{print $1}'"
sys = mw.execShell(cmd)
if sys[1] != '':
@ -851,8 +851,7 @@ def installPreInspection(version):
if not sysName in ['centos','almalinux']:
return '暂时仅支持centos,almalinux'
return 'ok'
except Exception as e:
return str(e)
if __name__ == "__main__":

Loading…
Cancel
Save