Koozali.org: home of the SME Server

Can I manually add new SVN repositories ?

Offline mpfj

  • 18
  • +0/-0
Can I manually add new SVN repositories ?
« 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 ?

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Can I manually add new SVN repositories ?
« Reply #1 on: December 07, 2017, 04:17:59 PM »
moving to contribs section

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Can I manually add new SVN repositories ?
« Reply #2 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.


Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Can I manually add new SVN repositories ?
« Reply #3 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
« Last Edit: December 07, 2017, 08:16:32 PM by Jean-Philippe Pialasse »

Offline mpfj

  • 18
  • +0/-0
Re: Can I manually add new SVN repositories ?
« Reply #4 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  :-)