PKGBUILDs/extra/mariadb/mariadb-post.sh

9 lines
237 B
Bash
Raw Normal View History

2014-12-05 16:47:24 +00:00
#!/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