Navigation Menu

Skip to content

Commit

Permalink
Omit error messages when checking whether root is password protected …
Browse files Browse the repository at this point in the history
…or not
  • Loading branch information
relip committed Dec 15, 2015
1 parent c0723df commit a66ad33
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 a66ad33

Please sign in to comment.