summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-08-25 15:34:48 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-08-25 15:34:48 (GMT)
commit26cca31caf4d1b8825f39fc20eb205213d1fbf0c (patch)
treec8515f4d084ca2ecbcb54bb97fb1a16eaca0dcf8
parent167bf19cbb2c45f2ea3526462e351f11c9f8ebf5 (diff)
downloadwcsinst-26cca31caf4d1b8825f39fc20eb205213d1fbf0c.zip
wcsinst-26cca31caf4d1b8825f39fc20eb205213d1fbf0c.tar.gz
wcsinst-26cca31caf4d1b8825f39fc20eb205213d1fbf0c.tar.bz2
only deploy site template when creating the site (#5327)HEADmaster
-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):