DSP Project first push, date: 29/01/2026

This commit is contained in:
Sok Ponlork
2026-01-29 14:31:48 +07:00
parent 951262afb3
commit 644b624d2d
1857 changed files with 163516 additions and 0 deletions

12
docker/app-entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
set -e
# Ensure uploads subdirectories exist and are writable
UPLOAD_ROOT="/var/www/html/uploads"
mkdir -p "$UPLOAD_ROOT/announcements" "$UPLOAD_ROOT/slides" "$UPLOAD_ROOT/datasources"
# Relax permissions so Apache (www-data) can write when using bind mounts
chown -R www-data:www-data "$UPLOAD_ROOT"
chmod -R 775 "$UPLOAD_ROOT"
exec apache2-foreground