[Groonga-mysql-commit] mroonga/mroonga at e49f5fa [master] debian: use install.sql

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 8 15:15:40 JST 2014


Kouhei Sutou	2014-05-08 15:15:40 +0900 (Thu, 08 May 2014)

  New Revision: e49f5fa7bdf652aa9d7fd770e0c815a002b1a395
  https://github.com/mroonga/mroonga/commit/e49f5fa7bdf652aa9d7fd770e0c815a002b1a395

  Message:
    debian: use install.sql
    
    Caution: It is not tested yet.

  Modified files:
    packages/debian/mysql-server-mroonga.install
    packages/debian/mysql-server-mroonga.postinst

  Modified: packages/debian/mysql-server-mroonga.install (+1 -0)
===================================================================
--- packages/debian/mysql-server-mroonga.install    2014-05-08 15:11:29 +0900 (59bffb7)
+++ packages/debian/mysql-server-mroonga.install    2014-05-08 15:15:40 +0900 (03f64cf)
@@ -1,2 +1,3 @@
 usr/lib/mysql/plugin/ha_mroonga.so*
+usr/share/mroonga/*
 debian/apparmor/mysql-server-mroonga etc/apparmor.d/abstractions/

  Modified: packages/debian/mysql-server-mroonga.postinst (+2 -8)
===================================================================
--- packages/debian/mysql-server-mroonga.postinst    2014-05-08 15:11:29 +0900 (eca82cb)
+++ packages/debian/mysql-server-mroonga.postinst    2014-05-08 15:15:40 +0900 (18429cd)
@@ -5,14 +5,8 @@ set -e
 prevver="$2"
 
 install_plugin() {
-    cat <<EOS | mysql --defaults-file=/etc/mysql/debian.cnf || true
-DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
-INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
-CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_mroonga.so';
-CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME 'ha_mroonga.so';
-CREATE FUNCTION mroonga_command RETURNS STRING SONAME 'ha_mroonga.so';
-CREATE FUNCTION mroonga_escape RETURNS STRING SONAME 'ha_mroonga.so';
-EOS
+    cat /usr/share/mroonga/install.sql | \
+	mysql --defaults-file=/etc/mysql/debian.cnf || true
 }
 
 install_apparmor() {
-------------- next part --------------
HTML����������������������������...
Download 



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