From 34c0b42c5075cca3ccff367ee107e7609d9e170d Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Thu, 22 Aug 2024 08:09:06 +0200 Subject: [PATCH] No tty is available --- .../overlay/etc/sunet-machine-healthy/health-checks.d/db.check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-db/overlay/etc/sunet-machine-healthy/health-checks.d/db.check b/common-db/overlay/etc/sunet-machine-healthy/health-checks.d/db.check index 3f84c45..5cbcdf0 100755 --- a/common-db/overlay/etc/sunet-machine-healthy/health-checks.d/db.check +++ b/common-db/overlay/etc/sunet-machine-healthy/health-checks.d/db.check @@ -5,7 +5,7 @@ set -o pipefail while true; do - if /usr/bin/docker exec -it mariadb-db-1 mysql -p"$(puppet lookup --render-as s mariadb_root_password 2>/dev/null)" -e "show status like 'wsrep_cluster_status';" | grep -q Primary; then + if /usr/bin/docker exec mariadb-db-1 mysql -p"$(puppet lookup --render-as s mariadb_root_password 2>/dev/null)" -e "show status like 'wsrep_cluster_status';" | grep -q Primary; then exit 0 fi