Update crontab.js

tee to tee -a changed
pull/58/head
Vitali 2017-08-30 16:15:20 +03:00 committed by GitHub
parent 1d7b6f3bbc
commit 0d4ddb369b
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ exports.set_crontab = function(env_vars, callback){
if(tab.command[tab.command.length-1] != ";") // add semicolon
tab.command +=";";
crontab_string += tab.schedule + " ({ " + tab.command + " } | tee " + stdout + ") 3>&1 1>&2 2>&3 | tee " + stderr;
crontab_string += tab.schedule + " ({ " + tab.command + " } | tee -a " + stdout + ") 3>&1 1>&2 2>&3 | tee -a " + stderr;
if (tab.logging && tab.logging == "true") {
crontab_string += "; if test -f " + stderr +