From f2013abebc86444ed8ab79bc8fe2d3f676260542 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 10 Oct 2017 17:44:32 +0530 Subject: [PATCH] remove: use `ynh_mysql_remove_db` helper --- scripts/remove | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index a1055e5..1ece7fd 100755 --- a/scripts/remove +++ b/scripts/remove @@ -33,8 +33,7 @@ sudo rm -f "/etc/supervisor/conf.d/${app}.conf" # REMOVE THE MYSQL DATABASE #================================================= -# (DROP USER IF EXISTS is only available on MySQL >= 5.7, so we don't use it for now) -ynh_mysql_execute_as_root "DROP DATABASE IF EXISTS $db_name ; DROP USER $db_user@localhost ;" +ynh_mysql_remove_db "$db_user" "$db_name" #================================================= # REMOVE APP MAIN DIR