🔨 Makes NGinx wait for PHP-FPM before starting

This commit is contained in:
Franck Nijhof 2019-04-01 23:40:04 +02:00
parent 5a5e02f76c
commit b56c7ca68e
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -6,6 +6,10 @@
# Wait for PHP-FPM to become available
s6-svwait -u -t 5000 /var/run/s6/services/php-fpm
timeout -t 15 \
bash -c \
'until echo > /dev/tcp/localhost/9001 ; do sleep 0.5; done' \
> /dev/null 2>&1
bashio::log.info "Starting NGinx...."