mirror of
https://github.com/bitnami/containers.git
synced 2026-03-05 16:17:21 +08:00
moved chown instruction to run.sh
This commit is contained in:
@@ -7,7 +7,6 @@ check_for_updates &
|
||||
|
||||
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/run.sh" ]]; then
|
||||
nami_initialize nginx
|
||||
chown -R :daemon /bitnami/nginx || true
|
||||
fi
|
||||
|
||||
exec tini -- "$@"
|
||||
|
||||
@@ -6,6 +6,8 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user