[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add plugin install/uninstall script.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:28:45 JST 2012


Kouhei Sutou	2010-09-02 13:37:33 +0900 (Thu, 02 Sep 2010)

  New Revision: 9fdad263ccd7440750b9de745a58a83ffa2e1f7d
  https://github.com/mroonga/mroonga/commit/9fdad263ccd7440750b9de745a58a83ffa2e1f7d

  Log:
    add plugin install/uninstall script.

  Added files:
    debian/mysql-server-groonga.postinst
    debian/mysql-server-groonga.postrm

  Added: debian/mysql-server-groonga.postinst (+25 -0) 100755
===================================================================
--- /dev/null
+++ debian/mysql-server-groonga.postinst    2010-09-02 13:37:33 +0900 (995e20b)
@@ -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#

  Added: debian/mysql-server-groonga.postrm (+8 -0) 100755
===================================================================
--- /dev/null
+++ debian/mysql-server-groonga.postrm    2010-09-02 13:37:33 +0900 (e91e9b0)
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+echo "UNINSTALL PLUGIN groonga;" |
+    mysql --defaults-file=/etc/mysql/debian.cnf
+
+#DEBHELPER#
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index