Project

General

Profile

how to uninstall plugins

Added by Stephanie Collett over 15 years ago

Hi,

I have been looking into adding some plugins to Redmine. If I add a plugin that modifies the database, how would I uninstall the plugin? I've found documentation on installing plugins, but not uninstalling.

-Stephanie


Replies (29)

RE: how to uninstall plugins - Added by Lawrence Krubner about 11 years ago

Full text of error:

rake db:migrate:plugins PLUGIN=redmine_charts VERSION=0
rake aborted!
Don't know how to build task 'db:migrate:plugins'

RE: how to uninstall plugins - Added by Ivan Cenov about 11 years ago

look here:

For Redmine 1.x:

rake db:migrate_plugins RAILS_ENV=production
For Redmine 2.x:
rake redmine:plugins:migrate RAILS_ENV=production

RE: how to uninstall plugins - Added by Nathan Eddle almost 10 years ago

for me, the following worked today:

rake redmine:plugins:migrate NAME=plugin_name VERSION=0

RE: how to uninstall plugins - Added by langdead yang over 9 years ago

I'm using bitnami redmine. With following script(uninstall_redmineplugin.sh) under bitnami root, I finally recovered our redmine by removing 10 possible conflicting or problematic plugins.... lol.

usage is as
uninstall_redmineplugin.sh plugin1 plugin2 ...

#--------------------start--------------
#!/bin/sh

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=`dirname "$SCRIPT"`
echo $SCRIPTPATH
dir_path="$SCRIPTPATH/apps/redmine/htdocs"
echo $dir_path
mkdir -p "$dir_path/plugins.inactive"

remove_plugin() {
ruby bin/rake redmine:plugins:migrate NAME=$* VERSION=0 RAILS_ENV=production
mv "$dir_path/plugins/$*" "$dir_path/plugins.inactive/"
}

for plugin in "$@"
do
echo "[$plugin]"
$(remove_plugin "$plugin")
done

$SCRIPTPATH/ctlscript.sh restart
#---------------------end-----------------------

(26-29/29)