Tokenize dmarc reporter commandline

This commit is contained in:
Martin Weinelt 2025-08-07 23:45:03 +02:00
parent aa06b2f489
commit 43f87f5520
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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}";