diff --git a/plugins/clean/tool_task.py b/plugins/clean/tool_task.py index 10eeacba0..c85838432 100644 --- a/plugins/clean/tool_task.py +++ b/plugins/clean/tool_task.py @@ -90,11 +90,12 @@ def createBgTaskByName(name, args): mw_dir = mw.getRootDir() cmd = ''' +mw_dir=%s rname=%s plugin_path=%s script_path=%s logs_file=$plugin_path/${rname}.log -''' % (name, getServerDir(), getPluginDir()) +''' % (mw_dir, name, getServerDir(), getPluginDir()) cmd += 'echo "★【`date +"%Y-%m-%d %H:%M:%S"`】 STSRT★" >> $logs_file' + "\n" cmd += 'echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" >> $logs_file' + "\n" cmd += 'echo "python3 $script_path/index.py clean >> $logs_file 2>&1"' + "\n"