summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJohannes Graumann <johannes_graumann@web.de>2012-10-15 22:34:14 +0300
committerJohannes Graumann <johannes_graumann@web.de>2012-10-15 22:34:14 +0300
commit728ca8f9910761474ec7ad4fedd6e5793040596c (patch)
tree86205497aedb0cfa0ca369f822e0cfb50cfc54c4 /pykolab
parent45c0bac1d190b6492c2dba5586cee6608cf2bf15 (diff)
downloadpykolab-728ca8f9910761474ec7ad4fedd6e5793040596c.tar.gz
Debianize: Conditionally adapt amavisd configuration path;
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mta.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index 6a5c691..5b4b97e 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -289,7 +289,10 @@ result_attribute = mail
fp.close()
t = Template(template_definition, searchList=[amavisd_settings])
- fp = open('/etc/amavisd/amavisd.conf', 'w')
+ if os.path.isdir('/etc/amavisd'):
+ fp = open('/etc/amavisd/amavisd.conf', 'w')
+ elif os.path.isdir('/etc/amavis'):
+ fp = open('/etc/amavis/amavisd.conf', 'w')
fp.write(t.__str__())
fp.close()