diff options
author | root <root@rshg054.dnsready.net> | 2013-03-02 00:04:05 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-02 00:04:05 -0800 |
commit | 98aa0004e23472ee63753fded33cd55d8b942f36 (patch) | |
tree | 1299d9cfb8bcd6bd295a1a279b4ad322b4e9133a /community/mariadb/mariadb-post.sh | |
parent | 5ae40a63ab4c6838234db5a9da1e99d8bc27875d (diff) |
Sat Mar 2 00:04:03 PST 2013
Diffstat (limited to 'community/mariadb/mariadb-post.sh')
-rwxr-xr-x | community/mariadb/mariadb-post.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/community/mariadb/mariadb-post.sh b/community/mariadb/mariadb-post.sh new file mode 100755 index 000000000..c4ac18171 --- /dev/null +++ b/community/mariadb/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 |