fix process interval - busybox missing feature

This commit is contained in:
Robert Schumann 2018-04-05 12:16:51 +02:00
parent 74520b5719
commit a0fc9240ba
3 changed files with 3 additions and 8 deletions

View File

@ -20,7 +20,7 @@ dmarcts report viewer: 2018-03-31
dmarcts report parser: 2018-03-31
## Sample docker compose / Environment variables
The variables should be self-explanatory.
The variables should be self-explanatory. Make sure to create the DB and IMAP folders before the cron job runs!
```
dmarc-report:
image: "gutmensch/dmarc-report:latest"
@ -38,6 +38,5 @@ dmarc-report:
- "PARSER_IMAP_PASS=foobar"
- "PARSER_IMAP_READ_FOLDER=Inbox"
- "PARSER_IMAP_MOVE_FOLDER=processed"
- "PARSER_PROCESS_INTERVAL=@hourly"
```

View File

@ -39,11 +39,6 @@ if [[ -v TEMPLATE_PERL_CONF ]] ; then
done
fi
if [[ -v PARSER_PROCESS_INTERVAL ]] ; then
cmd=$(awk '{$1=""; print $0}' /etc/cron.d/root)
echo "${PARSER_PROCESS_INTERVAL} ${cmd}" > /etc/cron.d/root
fi
# Start supervisord and services
/usr/bin/supervisord -n -c /etc/supervisord.conf

View File

@ -1 +1,2 @@
@hourly /usr/bin/dmarcts-report-parser.pl -i -d -r 1>>/var/log/nginx/dmarc-reports.log 2>&1
15 * * * * /usr/bin/dmarcts-report-parser.pl -i -d -r 1>>/var/log/nginx/dmarc-reports.log 2>&1