Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #90 from relip/master
Browse files Browse the repository at this point in the history
Omit error messages when checking whether root is password protected or not

Patch by Larry Kim. Thanks!!!
  • Loading branch information
kou committed Dec 16, 2015
2 parents c0723df + a66ad33 commit 3bb7e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rpm/centos/mariadb-mroonga.spec.in
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3bb7e50

Please sign in to comment.