Bernhard Rosenkränzer 30bdb3148a Replace calls to mysql/mysqldump with mariadb/mariadb-dump
The compat symlinks have been removed in current mariadb containers.
Let's not run into nasty surprises when we update.
2025-02-18 13:46:37 +01:00

15 lines
400 B
Bash
Executable File

#!/bin/sh
. /federated/services/pdnsmysql/service
. /federated/apps/pdnsmysql/.env
# 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
TRIES=$((TRIES-1))
if [ "$TRIES" = 0 ]; then
echo "pdnsmysql not responding to SQL queries" >&2
exit 2
fi
done
exit 0