Files
org-social-static-preview/entrypoint.sh
Andros Fenollosa f1cf28fe6c Added entrypoint
2025-09-15 09:04:43 +02:00

13 lines
334 B
Bash

#!/bin/bash
# Create preview directory with correct permissions if it doesn't exist
mkdir -p /app/preview
# Change ownership of the preview directory to match the user running the container
chown -R $(id -u):$(id -g) /app/preview
# Make sure the directory is writable
chmod -R 755 /app/preview
# Execute the main command
exec "$@"