Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
17 lines
416 B
Bash
17 lines
416 B
Bash
#!/bin/sh
|
|
|
|
# Create data directory if it doesn't exist
|
|
mkdir -p /app/data
|
|
|
|
# Try to create the database file if it doesn't exist
|
|
touch /app/data/data.db 2>/dev/null || true
|
|
|
|
# Set permissions for the data directory and database file
|
|
chmod 777 /app/data 2>/dev/null || true
|
|
chmod 666 /app/data/data.db 2>/dev/null || true
|
|
|
|
echo "Data directory initialized with open permissions"
|
|
|
|
# Execute the main command
|
|
exec "$@"
|