diff --git a/README.md b/README.md index c4e5ff8..8fc5c09 100644 --- a/README.md +++ b/README.md @@ -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" ``` diff --git a/manifest/entrypoint.sh b/manifest/entrypoint.sh index 1ed8034..8196407 100644 --- a/manifest/entrypoint.sh +++ b/manifest/entrypoint.sh @@ -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 diff --git a/manifest/etc/cron.d/root b/manifest/etc/cron.d/root index 9fc590b..2e3c129 100644 --- a/manifest/etc/cron.d/root +++ b/manifest/etc/cron.d/root @@ -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 +