[Groonga-commit] groonga/wikipedia-search at b6a3c4b [master] Fix initialization on CentOS 6

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Nov 6 13:11:22 JST 2016


Kouhei Sutou	2016-11-06 13:11:22 +0900 (Sun, 06 Nov 2016)

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

  Message:
    Fix initialization on CentOS 6

  Modified files:
    benchmark/centos7/postgresql.sh

  Modified: benchmark/centos7/postgresql.sh (+4 -3)
===================================================================
--- benchmark/centos7/postgresql.sh    2016-11-06 13:06:26 +0900 (7cc69bd)
+++ benchmark/centos7/postgresql.sh    2016-11-06 13:11:22 +0900 (14f57fa)
@@ -144,12 +144,13 @@ restart_postgresql()
 
 setup_postgresql()
 {
-  run sudo -H \
-      env PGSETUP_INITDB_OPTIONS="--locale=C --encoding=UTF-8" \
-      /usr/pgsql-${pg_version}/bin/postgresql${pg_version_short}-setup initdb
   if type systemctl 2>&1 > /dev/null; then
+    run sudo -H \
+        env PGSETUP_INITDB_OPTIONS="--locale=C --encoding=UTF-8" \
+        /usr/pgsql-${pg_version}/bin/postgresql${pg_version_short}-setup initdb
     run sudo -H systemctl start postgresql-${pg_version}
   else
+    run sudo -H service postgresql-${pg_version} initdb C
     run sudo -H service postgresql-${pg_version} start
   fi
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index