Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled
15 lines
341 B
Bash
15 lines
341 B
Bash
#!/bin/sh
|
|
|
|
# Create data directory if it doesn't exist
|
|
mkdir -p /app/data
|
|
|
|
# Try to set permissions for the data directory
|
|
# This might fail in some environments, but that's okay
|
|
chown -R 1001:1001 /app/data 2>/dev/null || true
|
|
chmod 755 /app/data 2>/dev/null || true
|
|
|
|
echo "Data directory initialized"
|
|
|
|
# Execute the main command
|
|
exec "$@"
|