Question
Howto install plugins automated or scripted. For anyone searching like I did. This is my example for Debian/Ubuntu/Linux. It helps me as I tend to install and reinstall TWiki many times for testing or other purposes. See the attachement. Be welcome to correct or enhance at will.
The script does the following:
- You edit and list the wanted plugins in the file (the plugins variable)
- Plugins get downloaded
- Plugins are extracted
- Plugins are installed, with dependencies (read further)
- Permissions are applied (apache user)
You must enable the plugins from the configure script yourself afterwards
Remember that even though it works fine for me and my usual setup, it might give errors for you that need manual attention. I couldn't find any ready examples so I wrote this script a sunday evening. It's not perfect. Be sure to check the following before and after running the script:
- the configure script (http://myserver/twiki/bin/configure
)
- data/warn*.txt (/var/www/twiki/data/warn200801.txt)
- /var/log/apache/error.log.
- the local TWiki web, leftbar InstalledPlugins, scroll down and check Plugin Diagnostics.
NB! If you have installed plugins manually before or have rund the script several times the 'wget' utility saves new versions of downloaded files as Plugin.tgz.1 and counting. So you need to delete the tgz from previous downloads, if any.
NB! Some plugin, like DirectedGraphPlugin needs extra setting in the configure script.
NB! I recommend ImageMagick and GraphViz to be on the system before running the script.
NB! The
TimeTablePlugin only seems to have a zip file at the moment. Others might as well.
Many thanks to those who made the plugin installer script. The installer script that follows each plugin takes a "-a" switch which makes it automagically fix dependencies, if it can. This means that other plugins and cpan modules might be installed other than those you write in the script.
Hope it might be of some use for someone.
Environment
--
LarsEik - 28 Jan 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Topic revision: r1 - 2008-01-28
- LarsEik