How to Apply a Patch
Some of the Known Issues topics of
TWikiProductionReleases supply a patch. To patch your TWiki installation, login to your server, change to the TWiki root directory and then run
patch -i patchfile.txt. If needed, download GNU Patch (linked to from
PatchGuidelines).
If the patch is very small you can apply it manually. The patch file indicates the file, e.g.
twiki/lib/TWiki.pm. Edit that file and replace the
- minus lines with the
+ plus lines, removing the leading plus.
--
Contributors: PeterThoeny,
RichardDonkin
Discussion
The
TWiki root directory is propably something like
/srv/www/htdocs/twiki or
/srv/www/twiki.
Depending on the content of the
patchfile.txt it might be necessary to run
patch -p1 -i patchfile.txt to strip off the first directory level.
Have a look at the first lines of the patch to see if there is a TWiki directory like
---TWiki-4.0.0 then
-p1 is your choice.
To get a logfile (recommended) run the following command
patch -p1 -i patchfile.txt &2>1 /tmp/patch.log
--
FerdinandGassauer - 10 Feb 2006