bundles/rspamd: add "unless" to action:rspamd_assure_dkim_key_permissions
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
ed04aebc4b
commit
a8690b13b8
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ if 'dkim' in node.metadata.get('rspamd', {}):
|
|||
actions = {
|
||||
'rspamd_assure_dkim_key_permissions': {
|
||||
'command': 'chown _rspamd:_rspamd /var/lib/rspamd/dkim/*.key',
|
||||
'unless': 'test -z "$(find /var/lib/rspamd/ -iname \"*.key\" \! -user _rspamd)"',
|
||||
'needs': {
|
||||
'action:rspamd_generate_dkim_key',
|
||||
'directory:/var/lib/rspamd/dkim',
|
||||
|
|
Loading…
Reference in a new issue