Tokenize dmarc reporter commandline
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user