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-26 21:54:26 +01:00
parent 6dea3eef06
commit be96fcd7fc

View file

@ -24,6 +24,11 @@ final_path=$(ynh_app_setting_get $app final_path)
#=================================================
# STANDARD REMOVE
#=================================================
# STOP ONLYOFFICE
#=================================================
ynh_print_info "Stopping OnlyOffice"
supervisorctl stop all
#=================================================
# REMOVE THE POSTGRESQL DATABASE
@ -79,6 +84,9 @@ fi
# Remove a directory securely
ynh_secure_remove "/etc/apt/sources.list.d/onlyoffice.list"
ynh_secure_remove "/etc/apt/sources.list.d/nodesource.list"
ynh_secure_remove "/etc/onlyoffice"
ynh_secure_remove "/var/lib/onlyoffice"
ynh_secure_remove "/var/cache/nginx/onlyoffice"
# Remove the log files
ynh_secure_remove "/var/log/$app/"