From a64e4883d5d19b8d03b69ec2c034a65df72ec401 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 8 Nov 2025 00:05:01 -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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1abd7d049..e000f95b9 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -7,8 +7,8 @@ if [ "$(id -u)" = "0" ]; then # Running as root, check and fix permissions if needed SEAWEED_UID=$(id -u seaweed) SEAWEED_GID=$(id -g seaweed) - DATA_UID=$(stat -c '%u' /data 2>/dev/null || stat -f '%u' /data) - DATA_GID=$(stat -c '%g' /data 2>/dev/null || stat -f '%g' /data) + DATA_UID=$(stat -c '%u' /data 2>/dev/null) + DATA_GID=$(stat -c '%g' /data 2>/dev/null) # Only run chown -R if ownership doesn't match (much faster for subsequent starts) if [ "$DATA_UID" != "$SEAWEED_UID" ] || [ "$DATA_GID" != "$SEAWEED_GID" ]; then