docker-entrypoint.sh 200 B

12345678910
  1. #!/bin/bash
  2. set -e
  3. while true; do
  4. SC=$(curl -s -o /dev/null -w "%{http_code}" http://nginx:8081/settings.php)
  5. if [[ ${SC} == "200" ]]; then
  6. sleep 3
  7. exec "$@"
  8. fi
  9. sleep 3
  10. done