summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-13 11:45:25 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-08-13 11:45:25 (GMT)
commit07a013bd5405ce24e3f04216a0ba45d40e00e342 (patch)
tree4844e0a8e384406f67dcdebd2dac7c7bf091921f
parentce563590823fb40b3b20b17493714d37bbc45719 (diff)
downloadpykolab-07a013bd5405ce24e3f04216a0ba45d40e00e342.tar.gz
Don't forget the indentiation level
-rw-r--r--pykolab/setup/setup_mta.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index ed30f50..9280d18 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -267,16 +267,16 @@ result_format = shared+%%s
# Copy header checks files
for hc_file in [ 'inbound', 'internal', 'submission' ]:
- if not os.path.isfile("/etc/postfix/header_checks.%s" % (hc_file)):
- if os.path.isfile('/etc/kolab/templates/header_checks.%s' % (hc_file)):
- input_file = '/etc/kolab/templates/header_checks.%s' % (hc_file)
- elif os.path.isfile('/usr/share/kolab/templates/header_checks.%s' % (hc_file)):
- input_file = '/usr/share/kolab/templates/header_checks.%s' % (hc_file)
- elif os.path.isfile(os.path.abspath(os.path.join(__file__, '..', '..', '..', 'share', 'templates', 'header_checks.%s' % (hc_file)))):
- input_file = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'share', 'templates', 'header_checks.%s' % (hc_file)))
-
- shutil.copy(input_file, "/etc/postfix/header_checks.%s" % (hc_file))
- subprocess.call(["postmap", "/etc/postfix/header_checks.%s" % (hc_file)])
+ if not os.path.isfile("/etc/postfix/header_checks.%s" % (hc_file)):
+ if os.path.isfile('/etc/kolab/templates/header_checks.%s' % (hc_file)):
+ input_file = '/etc/kolab/templates/header_checks.%s' % (hc_file)
+ elif os.path.isfile('/usr/share/kolab/templates/header_checks.%s' % (hc_file)):
+ input_file = '/usr/share/kolab/templates/header_checks.%s' % (hc_file)
+ elif os.path.isfile(os.path.abspath(os.path.join(__file__, '..', '..', '..', 'share', 'templates', 'header_checks.%s' % (hc_file)))):
+ input_file = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'share', 'templates', 'header_checks.%s' % (hc_file)))
+
+ shutil.copy(input_file, "/etc/postfix/header_checks.%s" % (hc_file))
+ subprocess.call(["postmap", "/etc/postfix/header_checks.%s" % (hc_file)])
myaugeas = Augeas()