0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-27 09:08:04 +02:00

Compare commits

...

2 commits

Author SHA1 Message Date
Josh
962a1d12dc
Merge a83363f812 into aaa667ad0d 2024-10-22 20:28:28 +03:00
Josh
a83363f812
fix(entrypoint): set non-bogus $HOME when using su
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-10-19 11:06:15 -04:00

View file

@ -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