summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wcsinst/wcsinstd/deploy.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/wcsinst/wcsinstd/deploy.py b/wcsinst/wcsinstd/deploy.py
index d030c9a..431f7cb 100644
--- a/wcsinst/wcsinstd/deploy.py
+++ b/wcsinst/wcsinstd/deploy.py
@@ -53,17 +53,17 @@ class DeployInstance(object):
anew = True
os.mkdir(self.collectivity_install_dir, 0755)
- z = zipfile.ZipFile(os.path.join(self.skel_dir, 'export.wcs'), 'r')
-
- os.umask(0022)
- for f in z.namelist():
- path = os.path.join(self.collectivity_install_dir, f)
- data = z.read(f)
- if not os.path.exists(os.path.dirname(path)):
- os.mkdir(os.path.dirname(path), 0755)
- if not f.endswith('/'):
- open(path, 'w').write(data)
- z.close()
+ z = zipfile.ZipFile(os.path.join(self.skel_dir, 'export.wcs'), 'r')
+
+ os.umask(0022)
+ for f in z.namelist():
+ path = os.path.join(self.collectivity_install_dir, f)
+ data = z.read(f)
+ if not os.path.exists(os.path.dirname(path)):
+ os.mkdir(os.path.dirname(path), 0755)
+ if not f.endswith('/'):
+ open(path, 'w').write(data)
+ z.close()
config_file = os.path.join(self.collectivity_install_dir, 'config.pck')
if os.path.exists(config_file):