From efb73ed9104e131383bd3c78c5b12862799bbb95 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 28 Feb 2019 23:27:58 +0100 Subject: [PATCH] Fix removal --- scripts/remove | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/remove b/scripts/remove index 32ae68f..cfc5c66 100644 --- a/scripts/remove +++ b/scripts/remove @@ -30,14 +30,6 @@ ynh_print_info "Stopping OnlyOffice" supervisorctl stop all -#================================================= -# REMOVE THE POSTGRESQL DATABASE -#================================================= -ynh_print_info "Removing the PostgreSQL database" - -# Remove a database if it exists, along with the associated user -ynh_psql_remove_db $db_name $db_name - #================================================= # REMOVE ONLYOFFICE #================================================= @@ -46,6 +38,14 @@ ynh_print_info "Removing OnlyOffice" ynh_secure_remove /var/lib/dpkg/info/onlyoffice-documentserver.prerm ynh_package_autoremove onlyoffice-documentserver +#================================================= +# REMOVE THE POSTGRESQL DATABASE +#================================================= +ynh_print_info "Removing the PostgreSQL database" + +# Remove a database if it exists, along with the associated user +ynh_psql_remove_db $db_name $db_name + #================================================= # REMOVE DEPENDENCIES #=================================================