From ef38087874da3485131fee0572223506ffaa6da9 Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Tue, 3 Mar 2020 20:06:25 +0100 Subject: [PATCH] Remove all scripts when uninstalling --- scripts/remove | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/remove b/scripts/remove index 109583d..bc0a02c 100755 --- a/scripts/remove +++ b/scripts/remove @@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers #================================================= app=$YNH_APP_INSTANCE_NAME +export final_path="/opt/yunohost/${app}" #================================================= # REMOVE DEPENDENCIES @@ -32,11 +33,10 @@ ynh_secure_remove "/etc/systemd/system/${app}.timer" ynh_secure_remove "/etc/systemd/system/${app}_check.timer" ynh_secure_remove "/etc/systemd/system/${app}_check_read_data.timer" ynh_secure_remove "/usr/local/bin/backup-with-${app}" -ynh_secure_remove "/usr/local/bin/check-${app}" -ynh_secure_remove "/usr/local/bin/check-read-data-${app}" ynh_secure_remove "/etc/yunohost/hooks.d/backup_method/05-${app}_app" -ynh_secure_remove "/etc/yunohost/hooks.d/backup_method/05-${app}_check_app" -ynh_secure_remove "/etc/yunohost/hooks.d/backup_method/05-${app}_check_read_data_app" +ynh_secure_remove "${final_path}/check_method" +ynh_secure_remove "${final_path}/check-${app}" +ynh_secure_remove "${final_path}" #================================================= # REMOVE SSH CONFIG