Mercurial Hosting > luan
comparison host/nginx_common.sh @ 2138:5cf7c6b1dec9 nginx_decoupled
minor fix
| author | Violet7 |
|---|---|
| date | Mon, 19 Jan 2026 20:27:02 -0800 |
| parents | 67b504ba388c |
| children |
comparison
equal
deleted
inserted
replaced
| 2137:67b504ba388c | 2138:5cf7c6b1dec9 |
|---|---|
| 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 export NGINX_GROUP="$(id -gn)" |
| 11 | 11 |
| 12 # -p makes this succeed if the path exists on macos | 12 # -p makes this succeed if the path exists on macos |
| 13 # on linux, mkdir always suceeds if path exists | 13 # on linux, mkdir always suceeds if path exists |
| 14 mkdir -p $NGINX_ROOT_CONFIG_DIR | 14 mkdir -p $NGINX_ROOT_CONFIG_DIR |
| 15 mkdir -p $NGINX_SITE_CONFIGS_DIR | 15 mkdir -p $NGINX_SITE_CONFIGS_DIR |
