Add CRON_DB_PATH to mailer

pull/231/head
chelid 2022-09-14 13:29:08 +03:00 committed by GitHub
parent 5bfc5bd215
commit 3b2260b96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -152,9 +152,9 @@ make_command = function(tab) {
"; fi";
}
if (tab.mailing && JSON.stringify(tab.mailing) != "{}"){
crontab_job_string += "; /usr/local/bin/node " + __dirname + "/bin/crontab-ui-mailer.js " + tab._id + " " + stdout + " " + stderr;
}
//if (tab.mailing && JSON.stringify(tab.mailing) != "{}"){
crontab_job_string += "; CRON_DB_PATH=" + exports.db_folder + " /usr/local/bin/node " + __dirname + "/bin/crontab-ui-mailer.js " + tab._id + " " + stdout + " " + stderr;
//}
return crontab_job_string;
}