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