support CIFS-mounted uploads and automatic scan on container start (closes #34)

This commit is contained in:
Ryan
2025-05-27 19:53:00 -04:00
committed by GitHub
parent aee78c9750
commit 40cecc10ad
3 changed files with 78 additions and 1 deletions

View File

@@ -109,4 +109,9 @@ if [ ! -f /var/www/metadata/createdTags.json ]; then
fi
echo "🔥 Starting Apache..."
exec apachectl -D FOREGROUND
exec apachectl -D FOREGROUND
if [ "$SCAN_ON_START" = "true" ]; then
echo "Scanning uploads directory to generate metadata..."
php /var/www/scripts/scan_uploads.php
fi