From 39bd003c48928fd44de5f84c467567d30728713c Mon Sep 17 00:00:00 2001 From: kyy Date: Wed, 25 Mar 2026 09:50:12 +0900 Subject: [PATCH] =?UTF-8?q?staging=20init-rp=20=ED=81=B4=EB=9D=BC=EC=9D=B4?= =?UTF-8?q?=EC=96=B8=ED=8A=B8=20ID=20=EC=9D=B4=EC=8A=A4=EC=BC=80=EC=9D=B4?= =?UTF-8?q?=ED=94=84=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/staging_pull_compose.template.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/staging_pull_compose.template.yaml b/docker/staging_pull_compose.template.yaml index 8172ea8f..27ac061d 100644 --- a/docker/staging_pull_compose.template.yaml +++ b/docker/staging_pull_compose.template.yaml @@ -277,14 +277,14 @@ services: # Function to create or update OAuth2 client (Idempotency) upsert_client() { - ID=$1 + ID=$$1 shift - if hydra get oauth2-client --endpoint http://hydra:4445 "$ID" >/dev/null 2>&1; then - echo "Updating existing client: $ID" - hydra update oauth2-client --endpoint http://hydra:4445 "$ID" "$@" + if hydra get oauth2-client --endpoint http://hydra:4445 "$$ID" >/dev/null 2>&1; then + echo "Updating existing client: $$ID" + hydra update oauth2-client --endpoint http://hydra:4445 "$$ID" "$$@" else - echo "Creating new client: $ID" - hydra create oauth2-client --endpoint http://hydra:4445 --id "$ID" "$@" + echo "Creating new client: $$ID" + hydra create oauth2-client --endpoint http://hydra:4445 --id "$$ID" "$$@" fi }