From be96fcd7fc90a33df2e25d87f52107e425e46adb Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 26 Feb 2019 21:54:26 +0100 Subject: [PATCH] Fix removal --- scripts/remove | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/remove b/scripts/remove index e4325f1..a4ce2ac 100644 --- a/scripts/remove +++ b/scripts/remove @@ -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/"