From f656dd0e3c482f4b3e64c0e5c19cb95c0d518188 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 2 Feb 2019 03:38:16 +0100 Subject: [PATCH] reorder database and dependencies removal --- scripts/remove | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/remove b/scripts/remove index 43d4898..7d64ae4 100755 --- a/scripts/remove +++ b/scripts/remove @@ -43,6 +43,13 @@ fi # Remove the dedicated systemd config ynh_remove_systemd_config +#================================================= +# REMOVE THE MYSQL DATABASE +#================================================= + +# Remove a database if it exists, along with the associated user +ynh_psql_remove_db "$db_name" "$app" + #================================================= # REMOVE DEPENDENCIES #================================================= @@ -51,12 +58,6 @@ ynh_remove_systemd_config ynh_remove_app_dependencies rm -f /etc/apt/sources.list.d/erlang-solutions.list -#================================================= -# REMOVE THE MYSQL DATABASE -#================================================= - -# Remove a database if it exists, along with the associated user -ynh_psql_remove_db "$db_name" "$app" #================================================= # REMOVE APP MAIN DIR #=================================================