Do not add redirection when the command already does that itself.

In a case where we wanted to save a separate log file per cron job I noticed that adding > /tmp/anyfilename would not take effect. ISPconfig was adding > /dev/null to the end of the line ... thus overruling my log target.

This fairly simple patch only adds the default redirection when the command specified has no > character in it.

Merge request reports

Loading