pull/199/head
midoks 3 years ago
parent cafff1d522
commit 8a79beab89
  1. 2
      plugins/supervisor/index.py
  2. 2
      plugins/webstats/tool_task.py

@ -103,7 +103,7 @@ def initDreplace():
mw.writeFile(conf, conf_content)
if os.path.exists(systemDir) and not os.path.exists(systemService):
activate_file = mw.getServerDir() + '/mdserver-web/bin/activate'
activate_file = mw.getRunDir() + '/bin/activate'
if os.path.exists(activate_file):
supervisord_bin = mw.execShell(
'source ' + activate_file + '&& which supervisord')[0].strip()

@ -61,7 +61,7 @@ def createBgTask():
import crontab_api
api = crontab_api.crontab_api()
cmd = "cd " + mw.getServerDir() + "/mdserver-web && nice -n 10 python3 " + \
cmd = "cd " + mw.getRunDir() + " && nice -n 10 python3 " + \
getPluginDir() + "/tool_task.py execute"
params = {
'name': name,

Loading…
Cancel
Save