Update crontab_api.py

This commit is contained in:
midoks
2022-12-17 15:45:04 +08:00
parent 5ab0f493e4
commit 0a98b4dc09
+7 -3
View File
@@ -504,13 +504,17 @@ export LANG=en_US.UTF-8
MW_PATH=%s/bin/activate
if [ -f $MW_PATH ];then
source $MW_PATH
fi
''' % (mw.getRunDir(),)
fi''' % (mw.getRunDir(),)
head = head + source_bin_activate + "\n"
log = '.log'
script_dir = mw.getServerDir() + "/mdserver-web/scripts"
script_dir = mw.getRunDir() + "/scripts"
if stype.find('database_') > -1:
plugin_name = stype.replace('database_', '')
script_dir = mw.getRunDir() + "/plugins/" + plugin_name + "/scripts"
stype = 'database'
script_dir = ''
wheres = {
'path': head + "python3 " + script_dir + "/backup.py path " + param['sname'] + " " + str(param['save']),