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
| ... | ... |
@@ -23,7 +23,7 @@ function cleanup_database_mysql {
|
| 23 | 23 |
if is_ubuntu; then |
| 24 | 24 |
# Get ruthless with mysql |
| 25 | 25 |
stop_service $MYSQL |
| 26 |
- uninstall_package mysql-common mariadb-common |
|
| 26 |
+ apt_get purge -y mysql* mariadb* |
|
| 27 | 27 |
sudo rm -rf /var/lib/mysql |
| 28 | 28 |
sudo rm -rf /etc/mysql |
| 29 | 29 |
return |