mirror of
https://github.com/tanrax/org-social-static-preview
synced 2026-01-08 06:13:35 +01:00
13 lines
334 B
Bash
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 "$@" |