mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:07:13 +08:00
9 lines
237 B
Bash
9 lines
237 B
Bash
#!/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
|