Re: [viewvc-users] Configurable config file location?
John Beranek <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | John@Home |
| Message-ID | <[email protected]> |
On 22/07/10 16:05, John Beranek wrote: > On 21/07/10 20:32, C. Michael Pilato wrote: >> On 07/19/2010 04:26 PM, John Beranek wrote: >>> My thought was that I'd change the code to allow the config file >>> location to be overridden by an environment variable. Looking at the >>> code it looks like there's already some kind of support for this. Is it >>> true that I only need to change all the places that define CONF_PATHNAME >>> to define it as "None"? >>> >>> If so, I could then set VIEWVC_CONF_PATHNAME in the Apache config, and >>> have multiple "viewvc.conf" files, one for each site. This would >>> certainly be an advance. >> >> Yup. You can do that today. > [snip] > > I've implemented a nasty hack, diff attached - doesn't allow for more > than one ViewVC installation per machine, but that's currently not a > requirement for me. Hmm, I just realised that my hack doesn't actually implement a fallback to loading viewvc.conf - so it's even nastier than I first though. ;) John. -- John Beranek To generalise is to be an idiot. http://redux.org.uk/ -- William Blake ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2636953 To unsubscribe from this discussion, e-mail: [[email protected]].