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