[dokuwiki] Re: darcs changes 2009-01-28


On 28 Jan 2009, at 12:00, Andreas Gohr wrote:



Tue Jan 27 19:25:21 CET 2009  Andreas Gohr <andi[at]splitbrain.org>
 * reverted plugin disabling method back to old behaviour
 Ignore-this: b5fadadeee9de8e52c41c056cf62be6d

With this patch plugins are now disabled by placing a disabled file in the
 plugin directory again.

Even though renaming plugin directories is the method with the fewest disk accesses it makes a lot of trouble with code revision control systems and,
 more important, Linux package management systems.

 Future versions of DokuWiki may use a central config file instead.

This patch also fixes the problem with the plugin manager not checking the
 return values of the pugin_(dis|en)able functions correctly.


The following bash command, if run from the dokuwiki root directory will return a plugin directory converted to the new format back to the old format.

find lib/plugins -name "*.disabled" | awk -F . '{ print "mv",$0,$1,"&& touch",$1"/disabled ;" }' | bash

Note, this requires shell access to a dokuwiki installation which needs to be on *nix. Change the initial directory, lib/plugins, to whatever path is required to get to your plugin directory from where ever you are.

To see the commands it will run, remove the pipe to bash, "| bash", from the end.

(There are probably better ways to do this)

- Chris --
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: