entrypoint.sh 237 B

123456789101112131415161718
  1. #!/bin/sh
  2. /wait_for_db.sh
  3. echo "Got response from DB"
  4. for script in /var/entrypoint.d/*.sh; do
  5. $script
  6. ret=$?
  7. if [ $ret -eq 64 ]; then
  8. exit 0
  9. elif [ $ret -eq 65 ]; then
  10. exit 1
  11. fi
  12. done
  13. exec php-fpm