diff options
author | cosmo0920 | 2015-06-24 00:02:01 +0900 |
---|---|---|
committer | cosmo0920 | 2015-06-24 00:02:46 +0900 |
commit | 1e3ea91e74ea024ea1679402f5d13c158793e86a (patch) | |
tree | 1e0ac17ff4a6e3d1b900424da377336bb2d7c50e /mariadb-post.sh | |
download | aur-1e3ea91e74ea024ea1679402f5d13c158793e86a.tar.gz |
initial commit
Diffstat (limited to 'mariadb-post.sh')
-rw-r--r-- | mariadb-post.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mariadb-post.sh b/mariadb-post.sh new file mode 100644 index 000000000000..c4ac181710d4 --- /dev/null +++ b/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 |