summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-10-06 08:59:31 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-12-30 12:37:38 +0100
commitfecd8c3bf9a0acf84528be89bb5825bc35e06834 (patch)
treeb4514ee8e25f324bc654d90028d65238a75d584a
parent063065448ad5a2e87d749849fc4fd74841d4bab1 (diff)
downloadpykolab-fecd8c3bf9a0acf84528be89bb5825bc35e06834.tar.gz
For some reason, Ubuntu 18.04 installs the amavis service as a sysvinit service
-rw-r--r--pykolab/setup/setup_mta.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 70b4ddd..17e79bc 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -487,6 +487,9 @@ result_format = "shared+%%s"
if os.path.isfile('/lib/systemd/system/amavis.service'):
amavisservice = 'amavis.service'
+ if os.path.isfile('/etc/init.d/amavis'):
+ amavisservice = 'amavis.service'
+
if os.path.isfile('/usr/lib/systemd/system/clamd.service'):
clamavservice = 'clamd.service'