Revered the path to node when calling ui mailer.js

This commit is contained in:
Corey Gaspard
2017-07-19 21:19:52 -05:00
parent acc9016d39
commit 26e11e55a2
3 changed files with 482 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ exports.set_crontab = function(env_vars, callback){
}
if (tab.mailing && JSON.stringify(tab.mailing) != "{}"){
crontab_string += "; " + __dirname + "/bin/crontab-ui-mailer.js " + tab._id + " " + stdout + " " + stderr;
crontab_string += "; /usr/local/bin/node " + __dirname + "/bin/crontab-ui-mailer.js " + tab._id + " " + stdout + " " + stderr;
}
crontab_string += "\n";