summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-10-19 11:06:15 -0400
committerGitHub <noreply@github.com>2024-10-19 11:06:15 -0400
commita83363f81215edd583f364a02ed0bf8d8d63f6a3 (patch)
tree79b7fc33d2e75b43225996ba7d343779f7cc8512
parentd03da64ac80d534c1b0ec69da3e6ddcc6af282a6 (diff)
fix(entrypoint): set non-bogus $HOME when using sujtr-fix-entrypoint-su-home
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rwxr-xr-x30/apache/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/30/apache/entrypoint.sh b/30/apache/entrypoint.sh
index 8e178f2e..a24fc88b 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