mirror of
https://github.com/bitnami/containers.git
synced 2026-03-13 14:58:03 +08:00
17 lines
368 B
Bash
Executable File
17 lines
368 B
Bash
Executable File
#!/bin/bash
|
|
. /opt/bitnami/base/functions
|
|
. /opt/bitnami/base/helpers
|
|
|
|
DAEMON=nginx
|
|
EXEC=$(which $DAEMON)
|
|
ARGS=
|
|
|
|
chown -R :daemon /bitnami/nginx || true
|
|
|
|
# redirect nginx logs to stdout/stderr
|
|
ln -sf /dev/stdout /opt/bitnami/nginx/logs/access.log
|
|
ln -sf /dev/stderr /opt/bitnami/nginx/logs/error.log
|
|
|
|
info "Starting ${DAEMON}..."
|
|
exec ${EXEC} ${ARGS} -g 'daemon off;'
|