From d1adcf3b1c27f03393fc2550bd998b3317572b70 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 27 Mar 2021 17:28:26 +0100 Subject: [PATCH] Explicitely delete directories during removal --- scripts/remove | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/remove b/scripts/remove index 4b4ecc5..6ec2980 100644 --- a/scripts/remove +++ b/scripts/remove @@ -17,6 +17,8 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) +final_path=$(ynh_app_setting_get --app=$app --key=final_path) +config_path=$(ynh_app_setting_get --app=$app --key=config_path) #================================================= # STANDARD REMOVE @@ -43,6 +45,16 @@ apt remove jellyfin-ffmpeg -y # Remove metapackage and its dependencies ynh_remove_app_dependencies +#================================================= +# REMOVE APP DIRECTORIES +#================================================= +ynh_script_progression --message="Removing app directories..." --time --weight=1 + +# Remove the app directory securely +ynh_secure_remove --file="$final_path" +ynh_secure_remove --file="$config_path" +ynh_secure_remove --file="/etc/systemd/system/jellyfin.service.d" + #================================================= # REMOVE NGINX CONFIGURATION #=================================================