Skip to content

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

fix(docker): fix /app ownership for .init file

7185e43f47873768
diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh
index 283b648e..ac23d4aa 100644
--- a/scripts/docker-entrypoint.sh
+++ b/scripts/docker-entrypoint.sh
@@ -17,6 +17,9 @@ if ! getent passwd "${PUID}" >/dev/null 2>&1; then
adduser -D -u "${PUID}" -G "${group_name}" -s /bin/sh syncin
fi
+# Change /app ownership to syncin (for writing .init file)
+chown "${PUID}:${PGID}" /app
+
# Change application data ownership to syncin if needed
CURRENT_UID=$(stat -c '%u' /app/data)
CURRENT_GID=$(stat -c '%g' /app/data)