From 0dde92b25d275d9f94c74c9f07ad5b384426b788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 11 Dec 2013 16:39:28 -0300 Subject: MariaDB Galera --- pcr/mariadb-galera/mariadb-post.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pcr/mariadb-galera/mariadb-post.sh (limited to 'pcr/mariadb-galera/mariadb-post.sh') diff --git a/pcr/mariadb-galera/mariadb-post.sh b/pcr/mariadb-galera/mariadb-post.sh new file mode 100644 index 000000000..c4ac18171 --- /dev/null +++ b/pcr/mariadb-galera/mariadb-post.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +while true; do + response=$(/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1) && break + echo "$response" | grep -q "mysqld is alive" && break + echo "$response" | grep -q "Access denied for user" && break + sleep 1 +done -- cgit v1.2.3-2-g168b