Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 2136:3ca8f933209d | 2137:67b504ba388c |
|---|---|
| 5 export NGINX_ROOT_CONFIG_FILE="$NGINX_ROOT_CONFIG_DIR/nginx.conf" | 5 export NGINX_ROOT_CONFIG_FILE="$NGINX_ROOT_CONFIG_DIR/nginx.conf" |
| 6 export NGINX_SITE_CONFIGS_DIR="$NGINX_ROOT_CONFIG_DIR/sites" | 6 export NGINX_SITE_CONFIGS_DIR="$NGINX_ROOT_CONFIG_DIR/sites" |
| 7 export NGINX_LOG_DIR="$NGINX_ROOT_CONFIG_DIR/log" | 7 export NGINX_LOG_DIR="$NGINX_ROOT_CONFIG_DIR/log" |
| 8 export NGINX_PID_DIR="$NGINX_ROOT_CONFIG_DIR" | 8 export NGINX_PID_DIR="$NGINX_ROOT_CONFIG_DIR" |
| 9 export NGINX_USER="$(whoami)" | 9 export NGINX_USER="$(whoami)" |
| 10 export NGINX_GROUP"$(id -gn)" | |
| 10 | 11 |
| 11 # -p makes this succeed if the path exists on macos | 12 # -p makes this succeed if the path exists on macos |
| 12 # on linux, mkdir always suceeds if path exists | 13 # on linux, mkdir always suceeds if path exists |
| 13 mkdir -p $NGINX_ROOT_CONFIG_DIR | 14 mkdir -p $NGINX_ROOT_CONFIG_DIR |
| 14 mkdir -p $NGINX_SITE_CONFIGS_DIR | 15 mkdir -p $NGINX_SITE_CONFIGS_DIR |
