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