mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
add zombie script
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
16
scripts/zombies.sh
Normal file
16
scripts/zombies.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
|
||||
[[ -z "$OFFSET" ]] && OFFSET=1
|
||||
[[ -z "$COUNT" ]] && "$((COUNT = 1000))"
|
||||
|
||||
: "$((i=OFFSET))"
|
||||
: "$((end=OFFSET+COUNT))"
|
||||
while [ "$((i <= end))" -ne 0 ]
|
||||
do
|
||||
echo "creating zombie $i"
|
||||
curl -X POST 'https://localhost:9200/ocs/v1.php/cloud/users' -k -u admin:admin -d userid="zombie$i" -d password="zombie" -d email="zombie$i@example.org"
|
||||
#$DIR/../ocis/bin/ocis accounts add --preferred-name zombie$i --on-premises-sam-account-name zombie$i --mail zombie$i@example.org
|
||||
: "$((i = i + 1))"
|
||||
done
|
||||
Reference in New Issue
Block a user