diff --git a/scripts/remove b/scripts/remove index c408ba2..fc31a26 100644 --- a/scripts/remove +++ b/scripts/remove @@ -45,8 +45,8 @@ ynh_remove_app_dependencies # REMOVE DATA DIR #================================================= -# Remove the app data directory with the command `yunohost app remove --purge` -if [ "$YNH_APP_PURGE" == true ] +# Remove the app data directory with the command `yunohost app remove transmission --purge` +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] then ynh_script_progression --message="Removing $app data directory..." --weight=2 ynh_secure_remove --file="$datadir"