From 996aaaddfa2be28725c1ca66e57bb50a7b7ce61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20D=C3=BCren?= Date: Mon, 29 Dec 2025 19:48:00 -0600 Subject: [PATCH] v1.0.1: Fix seed sample images not being copied - Add step in start.sh to copy seed files to data directory - Ensures sample images display correctly on fresh install --- CloudronManifest.json | 4 ++-- start.sh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index d120d66..07c3419 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -4,7 +4,7 @@ "author": "Andreas Dueren", "description": "AI-powered card note-taking application for capturing fleeting thoughts with RAG-enhanced search, markdown support, and self-hosted privacy.", "tagline": "AI-powered note-taking", - "version": "1.0.0", + "version": "1.0.1", "healthCheckPath": "/", "httpPort": 8000, "addons": { @@ -24,5 +24,5 @@ "memoryLimit": 512000000, "minBoxVersion": "7.0.0", "postInstallMessage": "Blinko has been installed successfully!\n\nVisit your Blinko instance to create your first account.\nThe first user to register will become the administrator.\n\nData is stored in /app/data and will be backed up automatically.", - "changelog": "1.0.0: Initial Cloudron package for Blinko" + "changelog": "1.0.1: Fix seed sample images not being copied to data directory" } diff --git a/start.sh b/start.sh index 2e97e50..e8ddae1 100644 --- a/start.sh +++ b/start.sh @@ -57,6 +57,13 @@ cd /app/code echo "=> Checking database seed..." node /app/code/dist/seed.js 2>/dev/null || true +# Copy seed files (sample images) if not already present +if [[ -d /app/code/prisma/seedfiles ]] && [[ ! -f /app/data/.blinko/files/pic01.png ]]; then + echo "=> Copying sample files..." + cp /app/code/prisma/seedfiles/* /app/data/.blinko/files/ 2>/dev/null || true + chown -R cloudron:cloudron /app/data/.blinko/files/ +fi + # Configure NGINX cp /app/code/nginx.conf /run/nginx.conf