diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-13 11:45:25 (GMT) |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2013-08-13 11:45:25 (GMT) |
commit | 07a013bd5405ce24e3f04216a0ba45d40e00e342 (patch) | |
tree | 4844e0a8e384406f67dcdebd2dac7c7bf091921f | |
parent | ce563590823fb40b3b20b17493714d37bbc45719 (diff) | |
download | pykolab-07a013bd5405ce24e3f04216a0ba45d40e00e342.tar.gz |
Don't forget the indentiation level
-rw-r--r-- | pykolab/setup/setup_mta.py | 20 |
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() |