moved chown instruction to run.sh

This commit is contained in:
Sameer Naik
2017-03-30 11:15:37 +02:00
parent f3b88492d7
commit d51107fd8a
2 changed files with 2 additions and 1 deletions

View File

@@ -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 -- "$@"

View File

@@ -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