mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-17 09:45:58 +00:00
fix process interval - busybox missing feature
This commit is contained in:
parent
74520b5719
commit
a0fc9240ba
@ -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"
|
||||
```
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user