summaryrefslogtreecommitdiff
path: root/extra/mariadb/mariadb-post.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariadb/mariadb-post.sh')
-rwxr-xr-xextra/mariadb/mariadb-post.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/mariadb/mariadb-post.sh b/extra/mariadb/mariadb-post.sh
new file mode 100755
index 000000000..c4ac18171
--- /dev/null
+++ b/extra/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