summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Schneider <jschneider@entrouvert.com>2013-11-21 16:42:48 (GMT)
committerJérôme Schneider <jschneider@entrouvert.com>2013-11-21 16:42:48 (GMT)
commit9c535b7191c4ce65c1f387947088725d27b0dfc0 (patch)
treedd4e9ada57e3ad6b9c01006ad75da32b4caa36f7
parentb9613248740000f8219389c3037334552b591aae (diff)
downloadwcsinst-9c535b7191c4ce65c1f387947088725d27b0dfc0.zip
wcsinst-9c535b7191c4ce65c1f387947088725d27b0dfc0.tar.gz
wcsinst-9c535b7191c4ce65c1f387947088725d27b0dfc0.tar.bz2
deploy: every mkdir use mode 0755
-rw-r--r--wcsinst/wcsinstd/deploy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wcsinst/wcsinstd/deploy.py b/wcsinst/wcsinstd/deploy.py
index 79a24a0..7c793bf 100644
--- a/wcsinst/wcsinstd/deploy.py
+++ b/wcsinst/wcsinstd/deploy.py
@@ -51,7 +51,7 @@ class DeployInstance(object):
anew = False
else:
anew = True
- os.mkdir(self.collectivity_install_dir)
+ os.mkdir(self.collectivity_install_dir, 0755)
z = zipfile.ZipFile(os.path.join(self.skel_dir, 'export.wcs'), 'r')
@@ -218,7 +218,7 @@ class DeployInstance(object):
apache_vhost_template = file(apache_vhost_template_path).read()
apache_dir = os.path.join(settings.MEDIA_ROOT, 'vhosts.d')
if not os.path.exists(apache_dir):
- os.mkdir(apache_dir)
+ os.mkdir(apache_dir, 0755)
file(os.path.join(apache_dir, '%s.conf' % self.domain), 'w').write(
apache_vhost_template.format(domain=self.domain))