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
-
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 ?
-
moving to contribs section
-
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.
-
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
signal-event repository-create
-
Finally got it working ...
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 :-)