[pdnsmysql/check] Don't fail when not on a tty

This commit is contained in:
Bernhard Rosenkränzer 2025-02-18 19:06:55 +01:00
parent 076eeb5027
commit a419bcf348

View File

@ -4,7 +4,7 @@
# Check it is up and running and produces reasonable output
TRIES=5
while ! docker exec -ti pdnsmysql mariadb -p${MYSQL_ROOT_PASSWORD} mysql -e 'SELECT User FROM user WHERE User="root";'; do
while ! docker exec pdnsmysql mariadb -p${MYSQL_ROOT_PASSWORD} mysql -e 'SELECT User FROM user WHERE User="root";'; do
TRIES=$((TRIES-1))
if [ "$TRIES" = 0 ]; then
echo "pdnsmysql not responding to SQL queries" >&2