aboutsummaryrefslogtreecommitdiffstats
path: root/docker/php/entrypoint.sh
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-21 22:36:11 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-21 22:36:11 +0100
commitd63e3c91a97d77b202e280ab0fa007dfbe1baa46 (patch)
treecd3533bfb947ea753d91f71a75406644a73d678d /docker/php/entrypoint.sh
parentf60a390f5c51039fd1efc1df9a6a7f3864ce0062 (diff)
downloadcamagru-d63e3c91a97d77b202e280ab0fa007dfbe1baa46.tar.gz
camagru-d63e3c91a97d77b202e280ab0fa007dfbe1baa46.zip
Add editor with webcam/upload capture, overlay compositing, and gallery feed
Diffstat (limited to 'docker/php/entrypoint.sh')
-rwxr-xr-xdocker/php/entrypoint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh
new file mode 100755
index 0000000..de41f7e
--- /dev/null
+++ b/docker/php/entrypoint.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Ensure the uploads directory exists and is writable by www-data (PHP-FPM).
+# Bind-mounted volumes keep host ownership, so we fix permissions at startup.
+mkdir -p /var/www/html/uploads/posts
+chown -R www-data:www-data /var/www/html/uploads
+
+exec "$@"