1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix removal

This commit is contained in:
yalh76 2019-02-28 23:27:58 +01:00
parent 875b13bdae
commit efb73ed910

View file

@ -30,14 +30,6 @@ ynh_print_info "Stopping OnlyOffice"
supervisorctl stop all 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 # REMOVE ONLYOFFICE
#================================================= #=================================================
@ -46,6 +38,14 @@ ynh_print_info "Removing OnlyOffice"
ynh_secure_remove /var/lib/dpkg/info/onlyoffice-documentserver.prerm ynh_secure_remove /var/lib/dpkg/info/onlyoffice-documentserver.prerm
ynh_package_autoremove onlyoffice-documentserver 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 # REMOVE DEPENDENCIES
#================================================= #=================================================