diff --git a/debian-installer.sh b/debian-installer.sh index 14484de..8516bb5 100644 --- a/debian-installer.sh +++ b/debian-installer.sh @@ -1,6 +1,6 @@ #!/bin/bash -INSTALLERVERSION="1.05" +INSTALLERVERSION="1.05.01" if [[ $(whoami) != "root" ]]; then echo "You must be root to run this script!" @@ -42,7 +42,7 @@ function doMariaDB { echo "DELETE FROM mysql.global_priv WHERE User='';" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 echo "DELETE FROM mysql.global_priv WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1');" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 echo "DROP DATABASE IF EXISTS test;" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 - echo "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 + echo "DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 echo "FLUSH PRIVILEGES;" | mysql > /dev/null 2>> "$oldpath/installer-errors.log" || return 1 }