mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
🔨 Makes NGinx wait for PHP-FPM before starting
This commit is contained in:
parent
5a5e02f76c
commit
b56c7ca68e
1 changed files with 4 additions and 0 deletions
|
@ -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...."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue