From 19f88494206493fb91409af4baf84453f75067a8 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 14 Dec 2024 11:54:09 +0100 Subject: [PATCH] better this way --- docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 5c33df6..ceac6d6 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -99,4 +99,5 @@ echo >&2 '└──' php-fpm84 -D # FPM must start first in daemon mode nginx # Then nginx in no daemon mode -exec su - www -c "$*" \ No newline at end of file +# Switch from user root to wwww +exec runuser -u www "$@" \ No newline at end of file