Skip to content

Commit 69f01fb

Browse files
authored
Adding missing >/dev/null in rebuild_mysql_database() func
1 parent eb7e6d2 commit 69f01fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/rebuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ rebuild_mysql_database() {
536536
mysql_connect $HOST
537537
mysql_query "CREATE DATABASE \`$DB\` CHARACTER SET $CHARSET" >/dev/null
538538
if [ "$(echo $mysql_ver |cut -d '.' -f2)" -ge 7 ] || [ "$mysql_fork" = "mariadb" ]; then
539-
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`"
540-
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`@localhost"
539+
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`" > /dev/null
540+
mysql_query "CREATE USER IF NOT EXISTS \`$DBUSER\`@localhost" > /dev/null
541541
if [ "$mysql_fork" = "mariadb" ]; then
542542
query="UPDATE mysql.user SET Password='$MD5' WHERE User='$DBUSER'"
543543
else

0 commit comments

Comments
 (0)