mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-18 12:51:43 +00:00
Merge pull request #1243 from dsander/fix-docker-mysql-connection-check
Fix mysql connection check for multi-process docker image
This commit is contained in:
commit
129f3d61c9
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ EOF
|
|||
|
||||
# wait for mysql server to start (max 120 seconds)
|
||||
timeout=120
|
||||
while ! mysqladmin -u root status >/dev/null 2>&1
|
||||
while ! mysqladmin -u root status >/dev/null 2>&1 && ! mysqladmin -u root --password=\${DATABASE_PASSWORD} status >/dev/null 2>&1
|
||||
do
|
||||
(( timeout = timeout - 1 ))
|
||||
if [ \$timeout -eq 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue