diff --git a/scripts/remove b/scripts/remove index 61f2713..bf67d5d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,14 +71,8 @@ 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 data directory if --purge option is used -if [ "${YNH_APP_PURGE:-0}" -eq 1 ] -then - ynh_script_progression --message="Removing app data directory..." --time --weight=1 - ynh_secure_remove --file="$datadir" -fi #================================================= # REMOVE THE CRON FILE #=================================================