diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-19 15:11:21 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-19 15:11:21 +0100 |
| commit | ce59f6561700eb21304c798dcd3fda5e1e55b933 (patch) | |
| tree | 06ce1dd1af5215e00ac2b37f45499c457798e900 /packaging/debs | |
| parent | e9bc341feb3dfe35ad50256f37329f17c490c20b (diff) | |
| download | rabbitmq-server-git-ce59f6561700eb21304c798dcd3fda5e1e55b933.tar.gz | |
re-enable plugins on deb upgrade
Diffstat (limited to 'packaging/debs')
| -rw-r--r-- | packaging/debs/Debian/debian/postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/debs/Debian/debian/postinst b/packaging/debs/Debian/debian/postinst index b11340ef8a..6f7497464f 100644 --- a/packaging/debs/Debian/debian/postinst +++ b/packaging/debs/Debian/debian/postinst @@ -39,6 +39,13 @@ case "$1" in [ ! -f /etc/rabbitmq/rabbitmq-env.conf ]; then mv /etc/rabbitmq/rabbitmq.conf /etc/rabbitmq/rabbitmq-env.conf fi + + ENABLED_PLUGINS_FILE="/usr/lib/rabbitmq/lib/rabbitmq_server-$2/plugins/enabled_plugins" + if [ -f "$ENABLED_PLUGINS_FILE" ]; then + RABBIT_LIB=$(ls -1td /usr/lib/rabbitmq/lib/rabbitmq_server-* | head -1) + cp $ENABLED_PLUGINS_FILE $RABBIT_LIB/plugins/ + rabbitmq-plugin enable + fi ;; abort-upgrade|abort-remove|abort-deconfigure) |
