Tokenize dmarc reporter commandline
This commit is contained in:
parent
aa06b2f489
commit
43f87f5520
1 changed files with 5 additions and 3 deletions
|
@ -204,9 +204,11 @@ in
|
|||
# Explicitly select yesterday's date to work around broken
|
||||
# default behaviour when called without a date.
|
||||
# https://github.com/rspamd/rspamd/issues/4062
|
||||
script = ''
|
||||
${pkgs.rspamd}/bin/rspamadm dmarc_report $(date -d "yesterday" "+%Y%m%d")
|
||||
'';
|
||||
script = toString [
|
||||
(lib.getExe' pkgs.rspamd "rspamadm")
|
||||
"dmarc_report"
|
||||
"$(date -d 'yesterday' '+%Y%m%d')"
|
||||
];
|
||||
serviceConfig = {
|
||||
User = "${config.services.rspamd.user}";
|
||||
Group = "${config.services.rspamd.group}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue