From e5083cec260d1cdac0b345092fa15d01cab28dee Mon Sep 17 00:00:00 2001 From: Thinh VoXuan Date: Wed, 29 Aug 2018 17:02:25 +0700 Subject: [PATCH] Update crontab.js always load crontabs script again --- crontab.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crontab.js b/crontab.js index c195d2b..b40ff69 100644 --- a/crontab.js +++ b/crontab.js @@ -133,14 +133,14 @@ exports.set_crontab = function(env_vars, callback){ if (err) return callback(err); /// In docker we're running crond using busybox implementation of crond /// It is launched as part of the container startup process, so no need to run it again - if(process.env.CRON_IN_DOCKER === undefined) { +// if(process.env.CRON_IN_DOCKER === undefined) { exec("crontab " + path.join(cronPath, "crontab"), function(err) { if (err) return callback(err); else callback(); }); - } else { - callback(); - } +// } else { +// callback(); +// } }); }); });