Project

General

Profile

« Previous | Next » 

Revision 9c535b71

Added by Jérôme Schneider over 10 years ago

deploy: every mkdir use mode 0755

View differences:

wcsinst/wcsinstd/deploy.py
51 51
            anew = False
52 52
        else:
53 53
            anew = True
54
            os.mkdir(self.collectivity_install_dir)
54
            os.mkdir(self.collectivity_install_dir, 0755)
55 55

  
56 56
        z = zipfile.ZipFile(os.path.join(self.skel_dir, 'export.wcs'), 'r')
57 57

  
......
218 218
        apache_vhost_template = file(apache_vhost_template_path).read()
219 219
        apache_dir = os.path.join(settings.MEDIA_ROOT, 'vhosts.d')
220 220
        if not os.path.exists(apache_dir):
221
            os.mkdir(apache_dir)
221
            os.mkdir(apache_dir, 0755)
222 222
        file(os.path.join(apache_dir, '%s.conf' % self.domain), 'w').write(
223 223
                apache_vhost_template.format(domain=self.domain))
224 224

  

Also available in: Unified diff