Svn

From A-Eskwiki
Revision as of 20:42, 9 April 2013 by Pepijno (Talk | contribs)

Jump to: navigation, search

Op de vm-gitsvn staan alle svn-repos zoals bijv de Sysop-svn.

Nieuwe repo toevoegen

Om een repo toe te voegen voeg je aan het bestand /etc/httpd/conf.d/subversion.conf het volgende toe:

<Location /repos>
        DAV svn
        SVNPath /var/www/svn/*repodir*
        AuthType Basic
        AuthName "Subversion repos"
        AuthUserFile /etc/*repodir*-svn-auth-conf
        Require valid-user
</Location>

Nu voeg je een nieuwe dir aan voor je repo:

cd /var/www/svn
svnadmin create *repodir*
chown -R apache.apache *repodir*

Om nu users bij de repo te laten moet je ze toevoegen aan de htaccess:

htpasswd -cm /etc/*repodir*-svn-auth-conf username

Voila! Alles is klaar!