You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
560 B
18 lines
560 B
4 years ago
|
#jinja2: lstrip_blocks: "True"
|
||
|
#!/bin/bash
|
||
|
|
||
2 years ago
|
if [ $# -ne 3 ]; then
|
||
2 years ago
|
echo "Usage: "$0" <username> <password> <admin access: 0 or 1>"
|
||
4 years ago
|
exit 1
|
||
|
fi
|
||
|
|
||
|
user=$1
|
||
|
password=$2
|
||
2 years ago
|
admin=$3
|
||
4 years ago
|
|
||
2 years ago
|
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
|