summaryrefslogtreecommitdiffstats
path: root/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/docker-entrypoint.sh')
-rwxr-xr-xdocker/docker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh
index 24dce8aa..f4769546 100755
--- a/docker/docker-entrypoint.sh
+++ b/docker/docker-entrypoint.sh
@@ -34,7 +34,7 @@ done
# Wait for DB initialization
echo "Wait for DB initialization"
for i in {1..5}; do
- mysql -u$MYSQL_ROOT_USER1 -p$MYSQL_ROOT_PASSWORD -h`echo $MYSQL_ADDR | cut -d: -f 1` -P`echo $MYSQL_ADDR | cut -d: -f 2` -e "show databases;" > /dev/null && echo "DB initialization completed" && break
+ mysql -u$MYSQL_ROOT_USER -p$MYSQL_ROOT_PASSWORD -h`echo $MYSQL_ADDR | cut -d: -f 1` -P`echo $MYSQL_ADDR | cut -d: -f 2` -e "show databases;" > /dev/null && echo "DB initialization completed" && break
sleep $i && echo "`echo $MYSQL_ADDR | cut -d: -f 1` connection failed"
done