Chown that fails will not crash startup anymore for Docker

This commit is contained in:
Tzahi12345
2020-08-03 20:07:02 -04:00
parent d0aed8f144
commit 835790e69c

View File

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