deploy: every mkdir use mode 0755
This commit is contained in:
parent
b961324874
commit
9c535b7191
|
@ -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))
|
||||
|
||||
|
|
Reference in New Issue