From 5b53da27568e133cd7c10454bfe322f2854be492 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 23 Apr 2026 04:17:18 -0400 Subject: [PATCH] fix: create nginx logs directory for precompiled binary builds The precompiled binary and cache code paths only copy the nginx binary without creating the logs/ directory that make install normally creates. This causes nginx to fail at startup with a fatal error when trying to open compiled-in default log paths at /app/nginx/logs/. --- bin/compile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/compile b/bin/compile index ddc99cb..fa3a7a8 100755 --- a/bin/compile +++ b/bin/compile @@ -123,6 +123,9 @@ else echo "$NGINX_VERSION" >"${CACHE_DIR}/bin/.nginx-version" fi +# Create logs directory for nginx's compiled-in default log paths +mkdir -p "$BUILD_DIR/nginx/logs" + # Update the PATH mkdir -p "$BUILD_DIR/.profile.d" cat >"$BUILD_DIR/.profile.d/nginx.sh" <<"EOF"