Are others interested in having a $TWikiRoot variable in TWiki4x00?
Currently
TWikiDotCfg uses separate paths for setting each of
PubDirectory,
LibDirectory,
DataDirectory. This proposal would cater to those (majority?) who install under a common top level directory.
| 5 |
MartinCleaver | 13 Feb 2006 | |
--
MartinCleaver - 02 Oct 2004
If the pubDir, libDir, dataDir, pubDir and templateDir are keep, and all in on this proposal. This ease the twiki maintenance and migration from server to server (just fewer prefs to modify).
--
RafaelAlvarez - 02 Oct 2004
It would simplify things for standard installations. However, you can't assume a flat directory structure for TWiki. An upgrade script can discover the directories if starting from the bin directory:
- lib from bin/setlib.cfg
- template, data and pub from lib/TWiki.cfg
IMO voting here is premature.
--
PeterThoeny - 03 Oct 2004
No we can't assume a flat directory structure, however the shipped TWiki.cfg
is a flat directory structure, so this change will not make any impact on those who do split things out (they still have the same number of edits to make).
--
MattWilkie - 26 Jan 2005
Peter, the change will not hamper scripts to discover the paths as before. And non-standard installs would not have any more work as now.
Moreover, all plugins assume a flat directory structure already.
--
ColasNahaboo - 27 Jan 2005
Lines to be edited using the suggested cfg change, for a flat install:
$twikiRoot = "/home/httpd/twiki/r3576";
$cfg{$PubDir} = "$twikiRoot/pub";
$cfg{$TemplateDir} = "$twikiRoot/templates";
$cfg{$DataDir} = "$twikiRoot/data";
$cfg{HtpasswdFileName} = "$twikiRoot/data/.htpasswd";
$cfg{$LogDir} = "$twikiRoot/logs";
Edits needed for current config with a non-flat install:
$cfg{PubDir} = '/home/httpd/twiki/pub';
$cfg{TemplateDir} = '/home/httpd/twiki/templates';
$cfg{DataDir} = '/home/httpd/twiki/data';
$cfg{RemoteUserFileName} = '/home/httpd/twiki/data/remoteusers.txt';
$cfg{HtpasswdFileName} = '/home/httpd/twiki/data/.htpasswd';
my $logDir = '/home/httpd/twiki/logs';
So, to summarise, this has no impact on admins who need to split things up, and make things a lot simpler for those who want in all under one root. So why
not add $twikiRoot?
--
MattWilkie - 27 Jan 2005
see
TWikiDotCfgNeedsGardening for why this won't work with the current code (basically since there are 3 places for cfgs to get set, and LocalSite.cfg is the last it won't get picked up all the time).
--
MattWilkie - 01 Feb 2005
This is made redundant by
configure in Dakar release.
--
CrawfordCurrie - 13 Feb 2006
Not sure it has, but I've deleted all the votes to re-test the issue.
--
MartinCleaver - 13 Feb 2006