diff options
author | guillaume.lambert <guillaume.lambert@orange.com> | 2022-05-28 21:12:47 +0200 |
---|---|---|
committer | Fiachra Corcoran <fiachra.corcoran@est.tech> | 2022-07-06 16:00:31 +0000 |
commit | ab71c57205ef0c84050ea1b8f08e46213db470c2 (patch) | |
tree | 850f96522cbd1eacb2b0718988b46425d0faf373 /kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh | |
parent | b4a66f9df15d8b10a31cf531ea6e8bf0bf1dd37a (diff) |
[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 <guillaume.lambert@orange.com>
Change-Id: Iad9bc6d5f4dcca89ce225e5ce8ac1a421b364427
Diffstat (limited to 'kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh')
-rwxr-xr-x | kubernetes/consul/resources/config/consul-agent-config/scripts/so-mariadb-script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |