Browse Source

Remove mariadb users without password.

Raphael Schneeberger 7 years ago
parent
commit
7e8ab76879
2 changed files with 2 additions and 2 deletions
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -1090,7 +1090,7 @@ if [ "$mysql" = 'yes' ]; then
     mysql -e "DELETE FROM mysql.user WHERE User=''"
     mysql -e "DELETE FROM mysql.user WHERE User=''"
     mysql -e "DROP DATABASE test" > /dev/null 2>&1
     mysql -e "DROP DATABASE test" > /dev/null 2>&1
     mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
     mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
-    mysql -e "DELETE FROM mysql.user WHERE user='';"
+    mysql -e "DELETE FROM mysql.user WHERE user='' OR password='';"
 
 
     # Configuring phpMyAdmin
     # Configuring phpMyAdmin
     if [ "$apache" = 'yes' ]; then
     if [ "$apache" = 'yes' ]; then

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -1070,7 +1070,7 @@ if [ "$mysql" = 'yes' ]; then
     mysql -e "DELETE FROM mysql.user WHERE User=''"
     mysql -e "DELETE FROM mysql.user WHERE User=''"
     mysql -e "DROP DATABASE test" > /dev/null 2>&1
     mysql -e "DROP DATABASE test" > /dev/null 2>&1
     mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
     mysql -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'"
-    mysql -e "DELETE FROM mysql.user WHERE user='';"
+    mysql -e "DELETE FROM mysql.user WHERE user='' OR password='';"
 
 
     # Configuring phpMyAdmin
     # Configuring phpMyAdmin
     if [ "$apache" = 'yes' ]; then
     if [ "$apache" = 'yes' ]; then