mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
18 lines
471 B
Bash
18 lines
471 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# ------------------------------
|
||
|
# sets the client id in environment.json
|
||
|
# ------------------------------
|
||
|
|
||
|
clientid=""
|
||
|
while [ -z $clientid ]; do
|
||
|
echo "no from zitadel ==> retry"
|
||
|
sleep 2
|
||
|
clientid=$(curl -s http://${HOST}:${PORT}/clientID)
|
||
|
if [[ "$clientid" != *@zitadel* ]]; then
|
||
|
echo "invalid response from zitadel ==> retry"
|
||
|
clientid=""
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
echo "$(jq ".clientid = $clientid" /environment.json)" > environment.json
|