From 8f90f765faf269c3b1f9c04d80a1369223bc982c Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 14 Jan 2015 10:36:48 -0500 Subject: [PATCH] clean mysql better The purge that was previously removed was actually kind of important to burning mysql back down to a stateless zero point. Bring this back with the addition of doing it for mariadb as well. Change-Id: If608db8731d9ddfb2440a37387409798619b163c --- lib/databases/mysql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/databases/mysql b/lib/databases/mysql index 62c3d4c90e..1c74c03735 100644 --- a/lib/databases/mysql +++ b/lib/databases/mysql @@ -23,7 +23,7 @@ function cleanup_database_mysql { if is_ubuntu; then # Get ruthless with mysql stop_service $MYSQL - uninstall_package mysql-common mariadb-common + apt_get purge -y mysql* mariadb* sudo rm -rf /var/lib/mysql sudo rm -rf /etc/mysql return