mirror of
https://github.com/nextcloud/docker.git
synced 2025-02-04 18:48:26 +01:00
fix(entrypoint): set non-bogus $HOME when using su
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
d03da64ac8
commit
a83363f812
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue