From: Reini U. <rei...@gm...> - 2005-10-22 19:26:07
|
Thanks, appreciated. I'll add it to CVS asap. On 10/21/05, Matt Brown <ma...@ma...> wrote: > As part of my work packaging PHPwiki for Debian I had to write a script > to migrate old index.php based configurations to the new config.ini > file. > > The script works reasonably well and handles most of the configuration > variables. The major omission is that it doesn't attempt to migrate > external authentication configuration at all (stuff like DB query > strings etc). > > It's written in perl (sorry) and takes a single command line argument > which is the path to a template file to use as the basis for the new > config.ini. Your old configuration should be fed to stdin and you'll get > the new configuration on stdout. > > The script can be found at > http://www.mattb.net.nz/patches/phpwiki/migrate-phpwiki-config > > An example template configuration file is at > http://www.mattb.net.nz/patches/phpwiki/config-template.ini > > There might be a little bit of Debian specific stuff there, but it > should be fairly general. > > Run the script without arguments for more detailed usage information. > > Not sure if anyone is still using old wikis or if you've all upgraded by > now, but maybe this will be of use to someone. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |