kunsi-feature-rspamd-rotating-keys #3

Merged
kunsi merged 4 commits from kunsi-feature-rspamd-rotating-keys into main 2020-11-13 12:13:00 +00:00
Showing only changes of commit 6bac83def2 - Show all commits

View file

@ -80,8 +80,8 @@ if 'dkim' in node.metadata.get('rspamd', {}):
} }
actions['rspamd_generate_dkim_key'] = { actions['rspamd_generate_dkim_key'] = {
'command': node.metadata['rspamd']['dkim'].format_into('cd /var/lib/rspamd/dkim && /usr/bin/rspamadm dkim_keygen -s "{fault}" -b 2048 -k "{fault}.key" > "{fault}.txt"'), 'command': node.metadata['rspamd']['dkim'].format_into('cd /var/lib/rspamd/dkim && /usr/bin/rspamadm dkim_keygen -s "{0}" -b 2048 -k "{0}.key" > "{0}.txt"'),
'unless': node.metadata['rspamd']['dkim'].format_into('test -f "/var/lib/rspamd/dkim/{fault}.key"'), 'unless': node.metadata['rspamd']['dkim'].format_into('test -f "/var/lib/rspamd/dkim/{0}.key"'),
'needs': { 'needs': {
'directory:/var/lib/rspamd/dkim', 'directory:/var/lib/rspamd/dkim',
}, },