Loggerhead serving a directory of branches, can't hide a directory that's not a branch

Bug #485208 reported by Marty on 2009-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Low
Unassigned

Bug Description

Not sure if this a bug or just not documented.

I'm using loggerhead to serve RANCID branches. Providing the directory of branches as the arguement to serve-branches works fine.

However there is a RANCID log directory in there as well and I would like to hide it. There was no .bazaar in that directory and it doesn't seem right to add one just to supply 'http_serve = False' parameter (but of course I tried it and it didn't appear to work).

Marty (marty-supine) wrote :

You could probably do it in ~/.bazaar/locations.conf for the user
Loggerhead runs as...

Michael Hudson-Doyle (mwhudson) wrote :

Matt's right, the intent is that you should be able to use locations.conf for this. Please let us know if it works!

Marty (marty-supine) wrote :

Have given that a try but it doesn't appear to work after restarting loggerheadd

# ps aux | grep logger
1002 28081 1.4 0.6 281724 26744 pts/0 Sl 09:01 0:00 python /usr/local/loggerhead/serve-branches --prefix=/ --log-folder=/var/log/loggerhead --port=8080 /usr/local/rancid/var/
root 28125 0.0 0.0 7392 840 pts/0 R+ 09:01 0:00 grep logger

# grep 1002 /etc/passwd
loggerhead:x:1002:100::/home/loggerhead:/bin/bash

# cat /home/loggerhead/.bazaar/locations.conf
[/usr/local/rancid/var/log]
http_serve = False

Changed in loggerhead:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers