Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

perf(docker): only change application data ownership

71856e889915fedf
diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh
index 5e5dd505..283b648e 100644
--- a/scripts/docker-entrypoint.sh
+++ b/scripts/docker-entrypoint.sh
@@ -17,12 +17,12 @@ if ! getent passwd "${PUID}" >/dev/null 2>&1; then
adduser -D -u "${PUID}" -G "${group_name}" -s /bin/sh syncin
fi
-# Change application ownership to syncin if needed
-CURRENT_UID=$(stat -c '%u' /app)
-CURRENT_GID=$(stat -c '%g' /app)
+# Change application data ownership to syncin if needed
+CURRENT_UID=$(stat -c '%u' /app/data)
+CURRENT_GID=$(stat -c '%g' /app/data)
if [ "${CURRENT_UID}" != "${PUID}" ] || [ "${CURRENT_GID}" != "${PGID}" ]; then
- chown -R "${PUID}:${PGID}" /app
+ chown -R "${PUID}:${PGID}" /app/data
fi
# Launch server as syncin user