PKGBUILDs/extra/mysql/mysqld-post.sh

9 lines
237 B
Bash
Raw Normal View History

2012-08-20 12:27:25 +00:00
#!/bin/sh
while true; do
2013-03-02 01:16:55 +00:00
response=$(/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1) && break
2012-08-20 12:27:25 +00:00
echo "$response" | grep -q "mysqld is alive" && break
2013-03-02 01:16:55 +00:00
echo "$response" | grep -q "Access denied for user" && break
2012-08-20 12:27:25 +00:00
sleep 1
done