Dockerfile update. Allow configure openmanod with ENV
[osm/RO.git] / docker / scripts / wait_db.sh
diff --git a/docker/scripts/wait_db.sh b/docker/scripts/wait_db.sh
deleted file mode 100755 (executable)
index f083d76..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-attempt=0
-max_attempts=120
-while ! mysqladmin ping -h"$DB_HOST" -P"$DB_PORT" --silent; do
-       #wait 120 sec
-       if [ $attempt -ge $max_attempts ]; then
-               echo "Can not connect to database during $max_attempts sec"
-               exit 1
-       fi
-       attempt=$[$attempt+1]
-       echo "Wait for MySQL Server ${DB_HOST}:${DB_PORT} [attempt $attempt/$max_attempts]"
-    sleep 1
-done
\ No newline at end of file