From 835790e69ca5d2d2e2bd2fac44aa345381ab6724 Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Mon, 3 Aug 2020 20:07:02 -0400 Subject: [PATCH] Chown that fails will not crash startup anymore for Docker --- backend/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/entrypoint.sh b/backend/entrypoint.sh index 51df772..3294d27 100755 --- a/backend/entrypoint.sh +++ b/backend/entrypoint.sh @@ -10,7 +10,7 @@ fi # chown current working directory to current user if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then - find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + + find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + || true exec su-exec "$UID:$GID" "$0" "$@" fi