Update crontab.js

always load crontabs script again
pull/85/head
Thinh VoXuan 2018-08-29 17:02:25 +07:00 committed by GitHub
parent 0222190b03
commit e5083cec26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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();
// }
});
});
});