[post-start.script] now works with timeout for testing mariadb.socket
This commit is contained in:
parent
0c60cf6d46
commit
dc14173fcb
|
@ -18,10 +18,10 @@ docker exec $MARIADB_SERVICE mysql -uroot -p$MARIADB_ROOT_PASSWORD 2>/dev/null;
|
|||
DB_RESTORED="$?";
|
||||
|
||||
# Try until connection OK
|
||||
while [ "$DB_RESTORED" != "0" ]; do
|
||||
while [ "$DB_RESTORED" == "1" ]; do
|
||||
sleep .5;
|
||||
echo -ne ".";
|
||||
docker exec $MARIADB_SERVICE mysql -uroot -p$MARIADB_ROOT_PASSWORD 2>/dev/null;
|
||||
timeout .1 docker exec $MARIADB_SERVICE mysql -uroot -p$MARIADB_ROOT_PASSWORD 2>/dev/null;
|
||||
DB_RESTORED="$?";
|
||||
done;
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 4175d578b051213cc18468a2c90f1654d42bd710
|
||||
Subproject commit 688b0c10c8a76ad4da1c0f3935813d0425e82739
|
Loading…
Reference in New Issue