2021-01-24 06:41:11 +00:00
|
|
|
#jinja2: lstrip_blocks: "True"
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -ne 2 ]; then
|
|
|
|
echo "Usage: "$0" <username> <password>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
user=$1
|
|
|
|
password=$2
|
2022-08-23 16:12:09 +00:00
|
|
|
admin=$3
|
2021-01-24 06:41:11 +00:00
|
|
|
|
2022-08-23 16:12:09 +00:00
|
|
|
if [ "$admin" -eq "1" ]; then
|
|
|
|
docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -admin -url http://localhost:{{ matrix_dendrite_http_bind_port }}
|
|
|
|
else
|
|
|
|
docker exec matrix-dendrite create-account -config /data/dendrite.yaml -username "$user" -password "$password" -url http://localhost:{{ matrix_dendrite_http_bind_port }}
|
|
|
|
fi
|