Change bootstrap api user

- from `pybitmessage` to `api``
This commit is contained in:
Peter Šurda 2024-02-28 23:00:23 +08:00
parent 17d1e901c0
commit 664e57db37
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -8,7 +8,6 @@ if [ ! -e .env ]; then
PASSWORD=$(tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo) PASSWORD=$(tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo)
cat > .env << EOF cat > .env << EOF
THREADS=$THREADS THREADS=$THREADS
USER=pybitmessage
PASSWORD=$PASSWORD PASSWORD=$PASSWORD
EOF EOF
else else
@ -38,7 +37,7 @@ for i in `seq 1 $THREADS`; do
<URL "http://$IP:8442/"> <URL "http://$IP:8442/">
Plugin "pybitmessagestatus" Plugin "pybitmessagestatus"
Instance "$INSTANCE" Instance "$INSTANCE"
User "pybitmessage" User "api"
Password "$PASSWORD" Password "$PASSWORD"
Post "{\"jsonrpc\":\"2.0\",\"id\":\"id\",\"method\":\"clientStatus\",\"params\":[]}" Post "{\"jsonrpc\":\"2.0\",\"id\":\"id\",\"method\":\"clientStatus\",\"params\":[]}"
<Key "result/networkConnections"> <Key "result/networkConnections">