[Groonga-mysql-commit] mroonga/mroonga at a66ad33 [master] Omit error messages when checking whether root is password protected or not

アーカイブの一覧に戻る

Larry Kim null+****@clear*****
Tue Dec 15 18:10:51 JST 2015


Larry Kim	2015-12-15 18:10:51 +0900 (Tue, 15 Dec 2015)

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

  Merged 3bb7e50: Merge pull request #90 from relip/master

  Message:
    Omit error messages when checking whether root is password protected or not

  Modified files:
    packages/rpm/centos/mariadb-mroonga.spec.in

  Modified: packages/rpm/centos/mariadb-mroonga.spec.in (+2 -2)
===================================================================
--- packages/rpm/centos/mariadb-mroonga.spec.in    2015-12-10 11:31:57 +0900 (34378ee)
+++ packages/rpm/centos/mariadb-mroonga.spec.in    2015-12-15 18:10:51 +0900 (2a36caf)
@@ -86,7 +86,7 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/mroonga/ mysql-mroonga-doc/
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if /usr/bin/mysql -u root -e "quit"; then
+if /usr/bin/mysql -u root -e "quit" > /dev/null 2>&1; then
   password_option=""
 else
   password_option="-p"
@@ -128,7 +128,7 @@ eval $command || \
 %preun
 uninstall_sql=%{_datadir}/mroonga/uninstall.sql
 
-if mysql -u root -e "quit"; then
+if mysql -u root -e "quit" > /dev/null 2>&1; then
   password_option=""
 else
   password_option="-p"
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る