diff --git a/back/services/cron.ts b/back/services/cron.ts index fbccceaf..1676274b 100644 --- a/back/services/cron.ts +++ b/back/services/cron.ts @@ -211,7 +211,7 @@ export default class CronService { cmdStr = `${cmdStr} now`; } - const cp = spawn(cmdStr, { shell: true, detached: true }); + const cp = spawn(cmdStr, { shell: '/bin/bash' }); this.cronDb.update( { _id }, { $set: { status: CrontabStatus.running, pid: cp.pid } },