summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-11-18 11:30:30 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-11-18 11:30:30 +0100
commit138b79783d0f8772fb6508c7a760a3e5846ea965 (patch)
tree984411df5d83598cb3b127dfb02eeb7060a67082
parent66310b2fc46138f1dad61f4b1887a224badf2541 (diff)
downloadpykolab-138b79783d0f8772fb6508c7a760a3e5846ea965.tar.gz
Sigh, Debian, deep sigh.
-rw-r--r--pykolab/setup/setup_mta.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 0a13fc3..20d562c 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -480,11 +480,19 @@ result_format = "shared+%%s"
amavisservice = 'amavisd.service'
clamavservice = 'clamd@amavisd.service'
+
if os.path.isfile('/usr/lib/systemd/system/amavis.service'):
amavisservice = 'amavis.service'
+
+ if os.path.isfile('/lib/systemd/system/amavis.service'):
+ amavisservice = 'amavis.service'
+
if os.path.isfile('/usr/lib/systemd/system/clamd.service'):
clamavservice = 'clamd.service'
+ if os.path.isfile('/lib/systemd/system/clamd.service'):
+ clamavservice = 'clamd.service'
+
if os.path.isfile('/bin/systemctl'):
subprocess.call(['systemctl', 'restart', 'postfix.service'])
subprocess.call(['systemctl', 'restart', amavisservice])