diff host/nginx_common.sh @ 2137:67b504ba388c nginx_decoupled

don't assume the user's primary group name is the same as their username
author Violet7
date Mon, 19 Jan 2026 20:20:03 -0800
parents 3ca8f933209d
children 5cf7c6b1dec9
line wrap: on
line diff
--- a/host/nginx_common.sh	Mon Jan 19 19:47:11 2026 -0800
+++ b/host/nginx_common.sh	Mon Jan 19 20:20:03 2026 -0800
@@ -7,6 +7,7 @@
 export NGINX_LOG_DIR="$NGINX_ROOT_CONFIG_DIR/log"
 export NGINX_PID_DIR="$NGINX_ROOT_CONFIG_DIR"
 export NGINX_USER="$(whoami)"
+export NGINX_GROUP"$(id -gn)"
 
 # -p makes this succeed if the path exists on macos
 # on linux, mkdir always suceeds if path exists