From 66fce8e076aa21ec2ce52864df7e757ecde3daef Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 18 Jul 2021 07:56:26 +0200 Subject: [PATCH] bundles/rspamd: fix some dependencies --- bundles/rspamd/items.py | 3 +++ bundles/rspamd/metadata.py | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bundles/rspamd/items.py b/bundles/rspamd/items.py index c72b77e..bcb7b21 100644 --- a/bundles/rspamd/items.py +++ b/bundles/rspamd/items.py @@ -26,6 +26,9 @@ directories = { 'owner': '_rspamd', 'group': '_rspamd', 'mode': '0750', + 'needs': { + 'pkg_apt:rspamd', + }, }, } diff --git a/bundles/rspamd/metadata.py b/bundles/rspamd/metadata.py index 0a99095..1ae0b6e 100644 --- a/bundles/rspamd/metadata.py +++ b/bundles/rspamd/metadata.py @@ -12,7 +12,12 @@ defaults = { 'clamav': {}, 'clamav-daemon': {}, 'clamav-freshclam': {}, - 'clamav-unofficial-sigs': {}, + 'clamav-unofficial-sigs': { + 'needs': { + 'pkg_apt:clamav', + 'pkg_apt:clamav-daemon', + }, + }, 'rspamd': {}, }, }, @@ -58,6 +63,7 @@ defaults = { 'tank/rspamd/rspamd': { 'mountpoint': '/var/lib/rspamd', 'needed_by': { + 'directory:/var/lib/rspamd/dkim', 'pkg_apt:rspamd', }, },