entrypoint.sh 417 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. waitDb() {
  3. while ! nslookup $1; do
  4. echo "Waiting for $1 to become available"
  5. sleep 5
  6. nslookup $1
  7. done
  8. }
  9. [[ ${INIT} && ${MONGO_HOST} && ${FB_HOST} ]] && { waitDb ${MONGO_HOST}; waitDb ${FB_HOST}; }
  10. #sed -i "s/\${DB_CLUSTER}/\"${DB_CLUSTER}\"/" /etc/web-laboratory-admin/application.conf
  11. #sed -i "s/ADMINHOST/0\.0\.0\.0:2551/" /etc/web-laboratory-admin/application.conf
  12. exec "$@"