From bab354ce812d7bcf3ec55681f50ee0ac8e08722d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 3 Jun 2020 07:11:30 +0200 Subject: [PATCH] Fix variable expansion --- backend/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index 137e984..51df772 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -9,7 +9,7 @@ if [ "${1#-}" != "$1" ]; then fi # chown current working directory to current user -if [ "$@" = "$CMD" ] && [ "$(id -u)" = "0" ]; then +if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + exec su-exec "$UID:$GID" "$0" "$@" fi