From 25cc17e98da26d5590938ce1c5cb07132c0002a4 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Fri, 29 Aug 2025 02:24:20 +0200 Subject: [PATCH] Fixed a bug caused by missing semicolon in doMariaDB function --- debian-installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }