From ab71c57205ef0c84050ea1b8f08e46213db470c2 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Sat, 28 May 2022 21:12:47 +0200 Subject: [COMMON] Replace kubectl calls to bash by sh TODO: add a proper detection in CI scripts Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: Iad9bc6d5f4dcca89ce225e5ce8ac1a421b364427 --- .../resources/config/consul-agent-config/scripts/so-mariadb-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh') diff --git a/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh b/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh index db5dcad558..a0974c0a45 100755 --- a/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh +++ b/kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh @@ -19,7 +19,7 @@ NAME=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-so-db[^[: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 + if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $NAME -- sh -c 'mysqladmin status -u root -p$MYSQL_ROOT_PASSWORD' > /dev/null; then echo Success. mariadb process is running. 2>&1 exit 0 else -- cgit 1.2.3-korg