diff options
author | 2018-05-14 19:21:26 +0000 | |
---|---|---|
committer | 2018-05-14 19:21:26 +0000 | |
commit | eda53aeaba3e7bbf8353142f97d29595ffa466c7 (patch) | |
tree | 142038a7d9a0bb8862be11b92852f6b0c26d13dd /kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh | |
parent | 492c9bb357f552276acc6299e273711b2e37a62a (diff) | |
parent | 83e5bdd5b2c733e219c53afb1b23eceee1243e31 (diff) |
Merge "Config Changes in Consul"
Diffstat (limited to 'kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh')
-rwxr-xr-x | kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh b/kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh index bc250113aa..5ac5c8b844 100755 --- a/kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh +++ b/kubernetes/consul/resources/config/consul-agent-config/scripts/vid-mariadb-script.sh @@ -1,4 +1,4 @@ -NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "vid-mariadb[^[:space:]]*") +NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-vid-mariadb[^[:space:]]*") if [ -n "$NAME" ]; then if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $NAME -- bash -c 'mysqladmin status -u root -p$MYSQL_ROOT_PASSWORD' > /dev/null; then |