Browse Source
Update docker/entrypoint.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/7451/head
Chris Lu
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
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 |
|
|
|
|
|
|
|
|