Mercurial Hosting > luan
comparison host/gen_nginx.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 |
comparison
equal
deleted
inserted
replaced
| 2136:3ca8f933209d | 2137:67b504ba388c |
|---|---|
| 12 trap error_trap ERR | 12 trap error_trap ERR |
| 13 | 13 |
| 14 LUANHOST_DIR="$(pwd)" | 14 LUANHOST_DIR="$(pwd)" |
| 15 | 15 |
| 16 cp startup/nginx/mime.types $NGINX_ROOT_CONFIG_DIR | 16 cp startup/nginx/mime.types $NGINX_ROOT_CONFIG_DIR |
| 17 luan startup/nginx/nginx_master.conf.luan $NGINX_ROOT_CONFIG_DIR $NGINX_SITE_CONFIGS_DIR $NGINX_LOG_DIR $NGINX_PID_DIR $NGINX_USER >$NGINX_ROOT_CONFIG_FILE | 17 luan startup/nginx/nginx_master.conf.luan $NGINX_ROOT_CONFIG_DIR $NGINX_SITE_CONFIGS_DIR $NGINX_LOG_DIR $NGINX_PID_DIR $NGINX_USER $NGINX_GROUP >$NGINX_ROOT_CONFIG_FILE |
| 18 luan startup/nginx/nginx.conf.luan $LUANHOST_DIR >"$NGINX_SITE_CONFIGS_DIR/luanhost.conf" | 18 luan startup/nginx/nginx.conf.luan $LUANHOST_DIR >"$NGINX_SITE_CONFIGS_DIR/luanhost.conf" |
| 19 | 19 |
| 20 # DON'T put this in the auto-loaded configs dir (NGINX_SITE_CONFIGS_DIR), | 20 # DON'T put this in the auto-loaded configs dir (NGINX_SITE_CONFIGS_DIR), |
| 21 # it is not meant to be loaded on its own. | 21 # it is not meant to be loaded on its own. |
| 22 luan startup/nginx/nginx.default.conf.luan $LUANHOST_DIR >"$LUANHOST_DIR/local/luanhost.default.conf" | 22 luan startup/nginx/nginx.default.conf.luan $LUANHOST_DIR >"$LUANHOST_DIR/local/luanhost.default.conf" |
