entrypoint.sh 278 B

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