Skip to content

Commit

Permalink
bash parameter substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
d80ep08th committed Sep 12, 2022
1 parent 7bbc638 commit 5dab7f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/get-credentials.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
set -euox pipefail

SERVER_DIR=ota-ce-gen
SERVER_BASE_URI=${1:-ota.ce}
SERVER_BASE_URI=${2:-ota.ce}


namespace="x-ats-namespace:default"
keyserver="https://keyserver.${SERVER_BASE_URI}"
reposerver="https://reposerver.${SERVER_BASE_URI}"
director="https://director.${SERVER_BASE_URI}"
keyserver="${1:-http}://keyserver.${SERVER_BASE_URI}"
reposerver="${1:-http}://reposerver.${SERVER_BASE_URI}"
director="${1:-http}://director.${SERVER_BASE_URI}"

curl --silent --fail ${director}/health/version || echo "$director not running"
curl --silent --fail ${keyserver}/health/version || echo "$keyserver not running"
Expand Down

0 comments on commit 5dab7f2

Please sign in to comment.