Skip to content
Snippets Groups Projects
Verified Commit 98cc7cec authored by David Hoese's avatar David Hoese
Browse files

Quote secret info to help with if statement

parent 96237ac6
No related branches found
No related tags found
No related merge requests found
...@@ -109,10 +109,10 @@ deploy_prod_rabbit: ...@@ -109,10 +109,10 @@ deploy_prod_rabbit:
- kubeconfig=$(basename $kubekorner_k3s_config) - kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation # get password from any previous installation
# if we don't do this the password will get out of sync # if we don't do this the password will get out of sync
- pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq 2>/dev/null || echo "") - sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq 2>/dev/null || echo "")
- echo $pw - echo $sec_info
- auth_sec="geosphere-rabbit-rabbitmq" - auth_sec="geosphere-rabbit-rabbitmq"
- if [ $pw != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi - if [ "$sec_info" != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi
- echo $EXTRA_ARGS - echo $EXTRA_ARGS
# install third-party rabbitmq server # install third-party rabbitmq server
- helm repo add bitnami "https://charts.bitnami.com/bitnami" - helm repo add bitnami "https://charts.bitnami.com/bitnami"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment