Add wait-for-mysql script.
This commit is contained in:
parent
dc7080f5dc
commit
da492c940f
2 changed files with 9 additions and 1 deletions
7
bin/wait-for-mysql
Executable file
7
bin/wait-for-mysql
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
echo -n "Waiting for MySQL..."
|
||||
while ! mysqladmin ping -h"$DB_HOST" --silent; do
|
||||
sleep 1
|
||||
echo -n "."
|
||||
done
|
||||
echo -e "\nConnected to MySQL!"
|
||||
|
|
@ -31,6 +31,7 @@
|
|||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/laminator"
|
||||
"bin/laminator",
|
||||
"bin/wait-for-mysql"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue