Bugfix: Properly remove sql user in remove.sh

This commit is contained in:
Tom Wiesing 2020-06-02 09:14:26 +02:00
parent 5a1bf22e0b
commit d43a517d88
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15

View file

@ -22,7 +22,7 @@ systemctl reload apache2
# Delete the MySQL database next. # Delete the MySQL database next.
log_info " => Deleting MySQL database '$MYSQL_DATABASE' and user '$MYSQL_USER'. " log_info " => Deleting MySQL database '$MYSQL_DATABASE' and user '$MYSQL_USER'. "
mysql -e "DROP DATABASE IF EXISTS \`${MYSQL_DATABASE}\`;" || true 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. # Clear the GraphDB repository.
log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'" log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'"