bundles/rspamd: fix automatic generation of dkim key
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
6a2ecbdbf5
commit
6bac83def2
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue