support CIFS-mounted uploads and automatic scan on container start (closes #34)
This commit is contained in:
7
start.sh
7
start.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user