Browse Source

missprint

Tomishinets Vladimir 4 years ago
parent
commit
c4c5e7f578
1 changed files with 1 additions and 1 deletions
  1. 1 1
      entrypoint.sh

+ 1 - 1
entrypoint.sh

@@ -7,7 +7,7 @@ waitDb() {
     nslookup $1
     nslookup $1
   done
   done
 }
 }
-[ ! -z ${INIT} ] && { waitDb ${DB_CLUSTER}; waitDb ${FB_HOST} }
+[[ ${INIT} && ${MONGO_HOST} && ${FB_HOST} ]] && { waitDb ${DB_CLUSTER}; waitDb ${FB_HOST}; }
 
 
 #sed -i "s/\${DB_CLUSTER}/\"${DB_CLUSTER}\"/" /etc/web-laboratory-admin/application.conf
 #sed -i "s/\${DB_CLUSTER}/\"${DB_CLUSTER}\"/" /etc/web-laboratory-admin/application.conf
 #sed -i "s/ADMINHOST/0\.0\.0\.0:2551/" /etc/web-laboratory-admin/application.conf
 #sed -i "s/ADMINHOST/0\.0\.0\.0:2551/" /etc/web-laboratory-admin/application.conf