check_replication: Add user to docker exec to be able to check rootless builds.

This commit is contained in:
Magnus Andersson 2024-11-04 10:58:52 +01:00
parent d5e88dd431
commit 812a56cf99
Signed by untrusted user: mandersson
GPG key ID: 1F7C896B34B28164

View file

@ -1,6 +1,6 @@
#!/bin/bash
result="$(docker exec mariadb_backup_mariadb_backup_1 mysql -p<%= @mysql_root_password %> -BN -e 'show status like "slave_running"')"
result="$(docker exec -u root mariadb_backup_mariadb_backup_1 mysql -p<%= @mysql_root_password %> -BN -e 'show status like "slave_running"')"
if [[ "${result}" == "Slave_running ON" ]]; then
echo "OK: Replica running"
exit 0