mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make rspamd an optional dependency, because rspamd is only necessary when you really care about incoming mail, is resource-heavy, and for some reason some setups cant install libhyperscan which is required by rspamd
This commit is contained in:
parent
351d9361fa
commit
3070e504ad
3 changed files with 9 additions and 1 deletions
|
@ -43,6 +43,7 @@ redis-server:
|
|||
rspamd:
|
||||
log: /var/log/rspamd/rspamd.log
|
||||
category: email
|
||||
ignore_if_package_is_not_installed: rspamd
|
||||
slapd:
|
||||
category: database
|
||||
test_conf: slapd -Tt
|
||||
|
|
3
debian/control
vendored
3
debian/control
vendored
|
@ -25,7 +25,7 @@ Depends: ${python3:Depends}, ${misc:Depends}
|
|||
, dnsmasq, resolvconf, libnss-myhostname
|
||||
, postfix, postfix-ldap, postfix-policyd-spf-perl, postfix-pcre
|
||||
, dovecot-core, dovecot-ldap, dovecot-lmtpd, dovecot-managesieved, dovecot-antispam
|
||||
, rspamd, opendkim-tools, postsrsd, procmail, mailutils
|
||||
, opendkim-tools, postsrsd, procmail, mailutils
|
||||
, redis-server
|
||||
, acl
|
||||
, git, curl, wget, cron, unzip, jq, bc, at, procps
|
||||
|
@ -35,6 +35,7 @@ Recommends: yunohost-admin, yunohost-portal (>= 12.0)
|
|||
, bash-completion, rsyslog
|
||||
, unattended-upgrades
|
||||
, libdbd-ldap-perl, libnet-dns-perl
|
||||
, rspamd
|
||||
Conflicts: iptables-persistent
|
||||
, apache2
|
||||
, bind9
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
set -e
|
||||
|
||||
if ! dpkg --list | grep -q 'ii *rspamd '
|
||||
then
|
||||
echo 'rspamd is not installed, skipping'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
do_pre_regen() {
|
||||
pending_dir=$1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue