[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: recovery messes-up repository perms

From: Robert Paulsen <robert_at_paulsenonline.net>
Date: 2004-06-27 03:47:37 CEST

On Saturday 26 June 2004 08:26 pm, Michael P. Soulier wrote:
> Greetings.
> One of the users of a repository that I admin just got an error telling
> me to run recovery on the repository. I'd like to know what caused that,
> but I ran it. What causes that?
> Now, the perms in the db directory are wrong for sharing with a group.


What a coincidence! I just ran into a similar problem and posted a question
about it a few minutes ago. I too ended up with bad permissions on repository
files. I created the following script to fix things up. Since I have several
different repositories (all under the same top-level directory) my script
loops through those repositories setting things right. You might want to use
this as a basis for a recovery script of your own.

find $repos_base -maxdepth 1 -type d | while read r ; do
        chown -R wwwrun:www $r/{dav,db,locks}

WARNING!!! Brand new script only used once! May be buggy!

Robert C. Paulsen, Jr.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 27 03:49:36 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.