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 #=================================================