Projet

Général

Profil

« Précédent | Suivant » 

Révision 26cca31c

Ajouté par Frédéric Péters il y a plus de 9 ans

  • ID 26cca31caf4d1b8825f39fc20eb205213d1fbf0c
  • Parent 167bf19c

only deploy site template when creating the site (#5327)

Voir les différences:

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

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

  
58
        os.umask(0022)
59
        for f in z.namelist():
60
            path = os.path.join(self.collectivity_install_dir, f)
61
            data = z.read(f)
62
            if not os.path.exists(os.path.dirname(path)):
63
                os.mkdir(os.path.dirname(path), 0755)
64
            if not f.endswith('/'):
65
                open(path, 'w').write(data)
66
        z.close()
56
            z = zipfile.ZipFile(os.path.join(self.skel_dir, 'export.wcs'), 'r')
57

  
58
            os.umask(0022)
59
            for f in z.namelist():
60
                path = os.path.join(self.collectivity_install_dir, f)
61
                data = z.read(f)
62
                if not os.path.exists(os.path.dirname(path)):
63
                    os.mkdir(os.path.dirname(path), 0755)
64
                if not f.endswith('/'):
65
                    open(path, 'w').write(data)
66
            z.close()
67 67

  
68 68
        config_file = os.path.join(self.collectivity_install_dir, 'config.pck')
69 69
        if os.path.exists(config_file):

Formats disponibles : Unified diff