From cd437b437b86a8176cd70a43eb9a3ce4da188acf Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 8 Nov 2025 00:05:09 -0800 Subject: [PATCH] Update docker/entrypoint.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- docker/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e000f95b9..5fbe28583 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -13,9 +13,9 @@ if [ "$(id -u)" = "0" ]; then # Only run chown -R if ownership doesn't match (much faster for subsequent starts) if [ "$DATA_UID" != "$SEAWEED_UID" ] || [ "$DATA_GID" != "$SEAWEED_GID" ]; then echo "Fixing /data ownership for seaweed user (uid=$SEAWEED_UID, gid=$SEAWEED_GID)" - if ! chown -R seaweed:seaweed /data 2>&1; then - echo "Warning: Failed to change ownership of /data. This may cause permission errors." - echo "If /data is read-only or has mount issues, the application may fail to start." + if ! chown -R seaweed:seaweed /data; then + echo "Warning: Failed to change ownership of /data. This may cause permission errors." >&2 + echo "If /data is read-only or has mount issues, the application may fail to start." >&2 fi fi