Skip to content
Snippets Groups Projects
Unverified Commit a83363f8 authored by Josh's avatar Josh Committed by GitHub
Browse files

fix(entrypoint): set non-bogus $HOME when using su


Signed-off-by: default avatarJosh <josh.t.richards@gmail.com>
parent d03da64a
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ directory_empty() { ...@@ -13,7 +13,7 @@ directory_empty() {
run_as() { run_as() {
if [ "$(id -u)" = 0 ]; then 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 else
sh -c "$1" sh -c "$1"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment