mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 08:32:39 +00:00
revert :D and set value
This commit is contained in:
@@ -36,18 +36,12 @@ echo "Wrote environment file ${WRITE_ENVIRONMENT_FILE}"
|
||||
cat ${WRITE_ENVIRONMENT_FILE}
|
||||
|
||||
# waiting for default organization
|
||||
until [ "$(echo "$DEFAULTORG_RESPONSE" | jq -r '.result | length')" -eq 1 ]; do
|
||||
until $(echo "$DEFAULTORG_RESPONSE" | jq -r '.result | length') == 1
|
||||
do
|
||||
DEFAULTORG_RESPONSE=$(curl -s --request POST \
|
||||
--url "${ZITADEL_API_INTERNAL_URL}/v2/organizations/_search" \
|
||||
--header "Authorization: Bearer ${PAT}" \
|
||||
--header "Host: ${ZITADEL_API_DOMAIN}" \
|
||||
-d '{"queries": [{"defaultQuery": {}}]}' )
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Failed to fetch default organization response"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-d '{"queries": [{"defaultQuery": {"value": true}}]}' )
|
||||
echo "Received default organization response: ${DEFAULTORG_RESPONSE}"
|
||||
sleep 5
|
||||
done
|
||||
Reference in New Issue
Block a user