2020-05-05 10:23:55 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
/wait_for_db.sh
|
|
|
|
|
|
|
|
echo "Got response from DB"
|
|
|
|
|
|
|
|
for script in /var/entrypoint.d/*.sh; do
|
|
|
|
$script
|
2021-05-02 21:39:32 +09:00
|
|
|
ret=$?
|
|
|
|
if [ $ret -eq 64 ]; then
|
|
|
|
exit 0
|
|
|
|
elif [ $ret -eq 65 ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2020-05-05 10:23:55 +09:00
|
|
|
done
|
|
|
|
|
|
|
|
exec php-fpm
|