mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
定时任务增加 work_dir 设置
This commit is contained in:
1 parent
865e3035b9
commit
fd6b4e4cde
5 files changed
+82
-2
No files matched your search
@@ -678,6 +678,9 @@ export default class CronService {
|
||||
.replace(/;? *\n/g, ';')
|
||||
.trim()}' `;
|
||||
}
|
||||
if (tab.work_dir) {
|
||||
commandVariable += `work_dir='${tab.work_dir.replace(/'/g, "'\\''")}' `;
|
||||
}
|
||||
|
||||
const crontab_job_string = `${commandVariable}${command}`;
|
||||
return crontab_job_string;
|
||||
|
||||
Reference in new issue
Block a user