From d43a517d88dcaa38887c18edde2d6b3dca41f124 Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Tue, 2 Jun 2020 09:14:26 +0200 Subject: [PATCH] Bugfix: Properly remove sql user in remove.sh --- factory/remove.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/factory/remove.sh b/factory/remove.sh index aa1775d..2b8dd22 100644 --- a/factory/remove.sh +++ b/factory/remove.sh @@ -22,7 +22,7 @@ systemctl reload apache2 # Delete the MySQL database next. log_info " => Deleting MySQL database '$MYSQL_DATABASE' and user '$MYSQL_USER'. " mysql -e "DROP DATABASE IF EXISTS \`${MYSQL_DATABASE}\`;" || true -mysql -e "DROP USER IF EXISTS \`${DBNAME}\`@localhost;" || true +mysql -e "DROP USER IF EXISTS \`${MYSQL_USER}\`@localhost;" || true # Clear the GraphDB repository. log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'"