Skip to content

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

Helmo requested to merge helmo/ispconfig3:patch-allow-redirect-cron into stable-3.1

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