Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
perf(docker): only change application data ownership
71856e889915fedf
diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.shindex 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; thenadduser -D -u "${PUID}" -G "${group_name}" -s /bin/sh syncinfi-# 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/datafi# Launch server as syncin user