mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:15:04 +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}
|
cat ${WRITE_ENVIRONMENT_FILE}
|
||||||
|
|
||||||
# waiting for default organization
|
# 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 \
|
DEFAULTORG_RESPONSE=$(curl -s --request POST \
|
||||||
--url "${ZITADEL_API_INTERNAL_URL}/v2/organizations/_search" \
|
--url "${ZITADEL_API_INTERNAL_URL}/v2/organizations/_search" \
|
||||||
--header "Authorization: Bearer ${PAT}" \
|
--header "Authorization: Bearer ${PAT}" \
|
||||||
--header "Host: ${ZITADEL_API_DOMAIN}" \
|
--header "Host: ${ZITADEL_API_DOMAIN}" \
|
||||||
-d '{"queries": [{"defaultQuery": {}}]}' )
|
-d '{"queries": [{"defaultQuery": {"value": true}}]}' )
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Error: Failed to fetch default organization response"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Received default organization response: ${DEFAULTORG_RESPONSE}"
|
echo "Received default organization response: ${DEFAULTORG_RESPONSE}"
|
||||||
sleep 5
|
|
||||||
done
|
done
|
||||||
Reference in New Issue
Block a user