Navigation Menu

Skip to content

Commit

Permalink
add plugin install/uninstall script.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 2, 2010
1 parent 181fd4b commit 9fdad26
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions debian/mysql-server-groonga.postinst
@@ -0,0 +1,25 @@
#! /bin/sh

set -e

prevver="$2"

install_plugin() {
echo "INSTALL PLUGIN groonga SONAME 'ha_groonga.so';" |
mysql --defaults-file=/etc/mysql/debian.cnf
}

case "$1" in
configure)
install_plugin
;;
abort-upgrade|abort-deconfigure|abort-remove)
:
;;
*)
echo "Called with unknown argument $1, bailing out."
exit 1
;;
esac

#DEBHELPER#
8 changes: 8 additions & 0 deletions debian/mysql-server-groonga.postrm
@@ -0,0 +1,8 @@
#! /bin/sh

set -e

echo "UNINSTALL PLUGIN groonga;" |
mysql --defaults-file=/etc/mysql/debian.cnf

#DEBHELPER#

0 comments on commit 9fdad26

Please sign in to comment.