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
This commit is contained in:
7
start.sh
7
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user