From 7349b9069eb88a35b4f09306f42b68f1b1692ade Mon Sep 17 00:00:00 2001
From: Jean-Francois Roy <jf@devklog.net>
Date: Thu, 16 Mar 2023 21:30:45 -0700
Subject: [PATCH] docker: Allow chown commands to fail

chown may not be allowed in containers with restricted security
contexts. See https://github.com/truecharts/charts/pull/7779.
---
 docker-entrypoint.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 6e7e57f..3dec4ec 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -22,8 +22,8 @@ if [[ ! -r "$CONFIG_FILE" ]]; then
 fi
 
 echo "> Setup permissions.."
-find /app \! -user "$UID" -exec chown "$UID:$GID" '{}' +
-find /data \! -user "$UID" -exec chown "$UID:$GID" '{}' +
+find /app \! -user "$UID" -exec chown "$UID:$GID" '{}' + || true
+find /data \! -user "$UID" -exec chown "$UID:$GID" '{}' +  || true
 
 
 echo "> Starting lldap.."