From e1dbf1fb898acec2212bd7ea989e1dea4253a2e9 Mon Sep 17 00:00:00 2001 From: Kayou Date: Wed, 27 Mar 2019 21:10:41 +0100 Subject: [PATCH] PostgreSQL was remove before the db --- scripts/remove | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/remove b/scripts/remove index 627263d..b7eb829 100644 --- a/scripts/remove +++ b/scripts/remove @@ -83,6 +83,13 @@ then yunohost firewall disallow TCP $port 2>&1 fi +#================================================= +# REMOVE THE POSTGRESQL DATABASE +#================================================= +ynh_print_info "Removing the PostgreSQL database" + +ynh_psql_remove_db $db_name $db_user + #================================================= # REMOVE DEPENDENCIES #================================================= @@ -91,13 +98,6 @@ ynh_print_info "Removing dependencies" # Remove metapackage and its dependencies ynh_remove_app_dependencies -#================================================= -# REMOVE THE POSTGRESQL DATABASE -#================================================= -ynh_print_info "Removing the PostgreSQL database" - -ynh_psql_remove_db $db_name $db_user - #================================================= # GENERIC FINALIZATION #=================================================