From dea7a6647c5573c91eb0e02228063040ee987bba Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 28 Sep 2024 18:11:44 +0100 Subject: [PATCH] fix? --- docker/start.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/start.sh b/docker/start.sh index f0171a5..59854b4 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -47,13 +47,11 @@ sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/" # Function to handle signal forwarding and service startup function start_services() { - echo "Starting PHP-FPM and Nginx..." - php-fpm83 --nodaemonize & + echo "Starting PHP-FPM..." + php-fpm83 --nodaemonize && chmod 777 /run/php/php.sock & PHP_FPM_PID=$! - # Fix permissions - chmod 777 /run/php/php.sock - + echo "Starting Nginx..." nginx -g 'daemon off;' & NGINX_PID=$!