pull/632/head
Mr Chen 5 months ago
parent 2b70534fb2
commit 7973d369cc
  1. 6
      plugins/php-apt/index.py
  2. 3
      plugins/php/index.py

@ -770,8 +770,7 @@ def getLibConf(version):
phplib = json.loads(mw.readFile(libpath))
libs = []
tasks = mw.M('tasks').where(
"status!=?", ('1',)).field('status,name').select()
tasks = mw.M('tasks').where("status!=?", ('1',)).field('status,name').select()
for lib in phplib:
lib['task'] = '1'
for task in tasks:
@ -814,8 +813,7 @@ def uninstallLib(version):
return data[1]
name = args['name']
execstr = "cd " + getPluginDir() + "/versions && /bin/bash common.sh " + \
version + ' uninstall ' + name
execstr = "cd " + getPluginDir() + "/versions && /bin/bash common.sh " + version + ' uninstall ' + name
data = mw.execShell(execstr)
# data[0] == '' and

@ -939,8 +939,7 @@ def libConfCommon(version):
phplib = json.loads(mw.readFile(libpath))
libs = []
tasks = mw.M('tasks').where(
"status!=?", ('1',)).field('status,name').select()
tasks = mw.M('tasks').where("status!=?", ('1',)).field('status,name').select()
for lib in phplib:
lib['task'] = '1'
for task in tasks:

Loading…
Cancel
Save