|
|
|
@ -55,11 +55,11 @@ for ((i = 0; i < $USER_COUNT; i++ ));do
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ ! -z "$output_file" ]; then
|
|
|
|
|
echo curl --globoff -XDELETE -H "Authorization: Bearer [TOKEN]" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc" -o "$output_file"
|
|
|
|
|
curl --globoff -XDELETE -H "Authorization: Bearer $token" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc" -o "$output_file"
|
|
|
|
|
echo curl --globoff -XPOST -H "Authorization: Bearer [TOKEN]" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc" -o "$output_file"
|
|
|
|
|
curl --globoff -XPOST -H "Authorization: Bearer $token" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc" -o "$output_file"
|
|
|
|
|
else
|
|
|
|
|
echo curl --globoff -XDELETE -H "Authorization: Bearer [TOKEN]" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc"
|
|
|
|
|
curl --globoff -XDELETE -H "Authorization: Bearer $token" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc"
|
|
|
|
|
echo curl --globoff -XPOST -H "Authorization: Bearer [TOKEN]" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc"
|
|
|
|
|
curl --globoff -XPOST -H "Authorization: Bearer $token" -d "{\"erase\": true}" "$domain/_synapse/admin/v1/deactivate/$user_id_enc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "Sleeping for 5 seconds ..."
|
|
|
|
|