summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2015-06-03 00:52:30 +0200
committerDaniel Hoffend <dh@dotlan.net>2015-06-03 00:52:30 +0200
commit39cde352048254e3abaef60ef4abc1fba7845940 (patch)
tree6788b5b1c7fef3d733ea10c0161cf868039d6c19
parent791f1e48a09d18621d43ba3a5eb59255283c439d (diff)
downloadpykolab-39cde352048254e3abaef60ef4abc1fba7845940.tar.gz
Don't overwrite config if template is not found - Fixes #5066
-rw-r--r--pykolab/setup/setup_roundcube.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py
index accd5e0..1af0f9e 100644
--- a/pykolab/setup/setup_roundcube.py
+++ b/pykolab/setup/setup_roundcube.py
@@ -134,15 +134,15 @@ def execute(*args, **kw):
level=8
)
- fp = None
- if os.path.isdir('/etc/roundcubemail'):
- fp = open('/etc/roundcubemail/%s' % (want_file), 'w')
- elif os.path.isdir('/etc/roundcube'):
- fp = open('/etc/roundcube/%s' % (want_file), 'w')
-
- if not fp == None:
- fp.write(t.__str__())
- fp.close()
+ fp = None
+ if os.path.isdir('/etc/roundcubemail'):
+ fp = open('/etc/roundcubemail/%s' % (want_file), 'w')
+ elif os.path.isdir('/etc/roundcube'):
+ fp = open('/etc/roundcube/%s' % (want_file), 'w')
+
+ if not fp == None:
+ fp.write(t.__str__())
+ fp.close()
schema_files = []
for root, directories, filenames in os.walk('/usr/share/doc/'):