From 04dd94032e48ee8f92ab98872a22fc04b3487d85 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 8 Oct 2022 18:12:45 +0800 Subject: [PATCH] Update tool_task.py --- plugins/clean/tool_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"