wcsinstd: create directory in 0755 and not 0777

This commit is contained in:
Jérôme Schneider 2013-11-21 15:46:58 +01:00
parent f3093ed1ff
commit 0cd7df4bbf
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class DeployInstance(object):
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))
os.mkdir(os.path.dirname(path), 0755)
if not f.endswith('/'):
open(path, 'w').write(data)
z.close()