Browse Source

Merge branch 'dev' into zeroidc

Grant Limberg 3 years ago
parent
commit
96add0ba65
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ext/central-controller-docker/main.sh

+ 5 - 0
ext/central-controller-docker/main.sh

@@ -79,6 +79,11 @@ echo "{
 }    
 }    
 " > /var/lib/zerotier-one/local.conf
 " > /var/lib/zerotier-one/local.conf
 
 
+until /usr/pgsql-10/bin/pg_isready -h ${ZTC_DB_HOST} -p ${ZTC_DB_PORT}; do
+	echo "Waiting for PostgreSQL...";
+	sleep 2;
+done
+
 export GLIBCXX_FORCE_NEW=1
 export GLIBCXX_FORCE_NEW=1
 export GLIBCPP_FORCE_NEW=1
 export GLIBCPP_FORCE_NEW=1
 export LD_PRELOAD="/usr/lib64/libjemalloc.so"
 export LD_PRELOAD="/usr/lib64/libjemalloc.so"