Skip to content

Commit

Permalink
chore: use --update-if-exists when creating broker
Browse files Browse the repository at this point in the history
  • Loading branch information
blgm committed Feb 15, 2024
1 parent 666c824 commit b276ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/push-broker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ if [[ -z ${BROKER_NAME} ]]; then
BROKER_NAME=csb-$USER
fi

cf create-service-broker "${BROKER_NAME}" "${SECURITY_USER_NAME}" "${SECURITY_USER_PASSWORD}" https://$(LANG=EN cf app "${APP_NAME}" | grep 'routes:' | cut -d ':' -f 2 | xargs) --space-scoped || cf update-service-broker "${BROKER_NAME}" "${SECURITY_USER_NAME}" "${SECURITY_USER_PASSWORD}" https://$(LANG=EN cf app "${APP_NAME}" | grep 'routes:' | cut -d ':' -f 2 | xargs)
cf create-service-broker "${BROKER_NAME}" "${SECURITY_USER_NAME}" "${SECURITY_USER_PASSWORD}" https://$(LANG=EN cf app "${APP_NAME}" | grep 'routes:' | cut -d ':' -f 2 | xargs) --space-scoped --update-if-exists

0 comments on commit b276ca1

Please sign in to comment.