diff options
author | Josh <josh.t.richards@gmail.com> | 2024-10-19 11:06:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-19 11:06:15 -0400 |
commit | a83363f81215edd583f364a02ed0bf8d8d63f6a3 (patch) | |
tree | 79b7fc33d2e75b43225996ba7d343779f7cc8512 | |
parent | d03da64ac80d534c1b0ec69da3e6ddcc6af282a6 (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-x | 30/apache/entrypoint.sh | 2 |
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 |