Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: mpfj on December 07, 2017, 04:03:03 PM

Title: Can I manually add new SVN repositories ?
Post by: mpfj on December 07, 2017, 04:03:03 PM
I have 30 or so SVN repositories to migrate from an old server.
Just creating them using svnadmin isn't enough, since all the server hooks aren't called (so httpd.conf, etc don't get updated).

So I was wondering if there's a way to manually add them ?
Title: Re: Can I manually add new SVN repositories ?
Post by: Stefano on December 07, 2017, 04:17:59 PM
moving to contribs section
Title: Re: Can I manually add new SVN repositories ?
Post by: Jean-Philippe Pialasse on December 07, 2017, 07:35:25 PM
My guess is that the contribs has some db to handle the svn repo. Maybe even it uses the acounts db. Not checked.

So it is just a matter of checking the content of the contrib and use the db command to populate the db with ypur svn repo. Then expanding the httpd template and restart the httpd-e-smith service. There is maybe a signal event in the contrib for it.

Title: Re: Can I manually add new SVN repositories ?
Post by: Jean-Philippe Pialasse on December 07, 2017, 08:12:50 PM
at having a look at : /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent

you will see that it uses the accounts db

this way should do the trick: (just adapt and choose the appropriate options for you. Bold are for default option if you do not create the property in the db.

db accounts set SVNREPONAME  repository AccessType {local,private,global} AuthentificationRequired {yes,no} ForceSSL {yes,no}  SVNAutoVersioning {on, off} ModMimeUsePathInfo {on, off}   AllowOverride {None,....} GroupsRead list,of,groups UsersRead list,of,users GroupsWrite list,of,groups UsersWrite list,of,users

then
Code: [Select]
signal-event repository-create
Title: Re: Can I manually add new SVN repositories ?
Post by: mpfj on December 08, 2017, 05:39:54 PM
Finally got it working ...

Code: [Select]
db accounts set $REPO repository Description $REPO AccessType global AuthentificationRequired no ForceSSL no SVNAutoVersioning on ModMimeUseProfilePath on GroupsRead "" GroupsWrite "" UsersRead "" UsersWrite "" Modifiable yes Removable yes
signal-event repository-create $REPO

Just need to work out how to get ViewVC working !!

Cheers  :-)