diff options
Diffstat (limited to 'abs/core/mysql/mysqld-post.sh')
-rwxr-xr-x | abs/core/mysql/mysqld-post.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/abs/core/mysql/mysqld-post.sh b/abs/core/mysql/mysqld-post.sh index 8dc9c4e..c4ac181 100755 --- a/abs/core/mysql/mysqld-post.sh +++ b/abs/core/mysql/mysqld-post.sh @@ -1,7 +1,8 @@ #!/bin/sh while true; do - response=`/usr/bin/mysqladmin -uUNKNOWN_USER ping 2>&1` && break + 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 |