Changeset 199 for cleverbox/branches

Show
Ignore:
Timestamp:
09/12/07 18:39:50 (5 years ago)
Author:
trivoallan
Message:

cleverbox : apache should have write access to project's htdocs (for webdav).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/branches/0.4/cleverbox/scripts/admin.py

    r198 r199  
    956956        os.chmod( svn_repos_path, 0775 ) 
    957957 
     958        # Htdocs directory 
     959        htdocs_path = os.path.join( self.getConfig('clients_root', 'general'), 
     960                                    infos['client'], 
     961                                    'htdocs', 
     962                                    infos['short_name'] ) 
     963 
     964        self._rchown( htdocs_path, int(self.getConfig('apache_user', 'general')), int(self.getConfig('ssh_group', 'general')) ) 
     965        os.chmod( htdocs_path, 0775 ) 
     966 
    958967        print "  Perms fixed\n" 
    959968