diff --git a/scripts/remove b/scripts/remove index 1b12a17..8ff3cd4 100644 --- a/scripts/remove +++ b/scripts/remove @@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name final_path=$(ynh_app_setting_get --app=$app --key=final_path) +datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= # STANDARD REMOVE @@ -71,7 +72,7 @@ ynh_remove_fpm_config ynh_script_progression --message="Removing app data directory..." --weight=1 # Remove the app directory securely -ynh_secure_remove --file="/home/yunohost.app/$app" +ynh_secure_remove --file="$datadir" #================================================= # REMOVE THE CRON FILE