From a83363f81215edd583f364a02ed0bf8d8d63f6a3 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 19 Oct 2024 11:06:15 -0400 Subject: [PATCH] fix(entrypoint): set non-bogus $HOME when using su Signed-off-by: Josh --- 30/apache/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/30/apache/entrypoint.sh b/30/apache/entrypoint.sh index 8e178f2ec..a24fc88bd 100755 --- a/30/apache/entrypoint.sh +++ b/30/apache/entrypoint.sh @@ -13,7 +13,7 @@ directory_empty() { run_as() { if [ "$(id -u)" = 0 ]; then - su -p "$user" -s /bin/sh -c "$1" + HOME=/var/www su -p "$user" -s /bin/sh -c "$1" else sh -c "$1" fi