[Groonga-commit] groonga/wikipedia-search at b09fc79 [master] Add guard

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 9 00:31:46 JST 2016


Kouhei Sutou	2016-02-09 00:31:46 +0900 (Tue, 09 Feb 2016)

  New Revision: b09fc79392a242f5a98e1c71dae60494b6d30d6f
  https://github.com/groonga/wikipedia-search/commit/b09fc79392a242f5a98e1c71dae60494b6d30d6f

  Message:
    Add guard

  Modified files:
    benchmark/centos7/mysql.sh
    benchmark/centos7/postgresql.sh

  Modified: benchmark/centos7/mysql.sh (+4 -2)
===================================================================
--- benchmark/centos7/mysql.sh    2016-02-09 00:29:03 +0900 (a89da9e)
+++ benchmark/centos7/mysql.sh    2016-02-09 00:31:46 +0900 (512ec57)
@@ -68,8 +68,10 @@ setup_mysql_repository()
 
 setup_groonga_repository()
 {
-  run sudo yum install -y \
-      http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
+  if ! rpm -q groonga-release > /dev/null 1>&2; then
+    run sudo yum install -y \
+        http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
+  fi
 }
 
 install_groonga_tokenizer_mecab()

  Modified: benchmark/centos7/postgresql.sh (+4 -2)
===================================================================
--- benchmark/centos7/postgresql.sh    2016-02-09 00:29:03 +0900 (f4cabb8)
+++ benchmark/centos7/postgresql.sh    2016-02-09 00:31:46 +0900 (fa58df1)
@@ -65,8 +65,10 @@ setup_postgresql_repository()
 
 setup_groonga_repository()
 {
-  run sudo yum install -y \
-      http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
+  if ! rpm -q groonga-release > /dev/null 1>&2; then
+    run sudo yum install -y \
+        http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm
+  fi
 }
 
 install_groonga_tokenizer_mecab()
-------------- next part --------------
HTML����������������������������...
Download 



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