fix cron command replacement

This commit is contained in:
Robert Schumann
2018-04-04 18:13:39 +02:00
parent 647bcf4b42
commit 64b23ad6aa
2 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,8 @@ if [[ -v TEMPLATE_PERL_CONF ]] ; then
fi
if [[ -v PARSER_PROCESS_INTERVAL ]] ; then
echo "${PARSER_PROCESS_INTERVAL} /usr/bin/dmarcts-report-parser.pl -i -d -r" > /etc/cron.d/root
cmd=$(awk '{$1=""; print $0}' /etc/cron.d/root)
echo -n "${PARSER_PROCESS_INTERVAL} ${cmd}" > /etc/cron.d/root
fi
# Start supervisord and services