f6430ee093
The MariaDB container fails to start with 'Bad magic header in tc log' error when the data directory has incorrect permissions or was previously corrupted. This occurs during first-time setup of the AVideo lab environment. The fix: - Creates a custom entrypoint script that detects and removes corrupted tc.log files by checking the magic header (should be 01 00 00 00) - Modifies Dockerfile.mariadb to integrate the fix script into the original MariaDB entrypoint using sed - Ensures the fix runs automatically before MariaDB initialization This allows the lab to start successfully on first run without manual intervention. Co-authored-by: bwatters-r7 <bwatters-r7@users.noreply.github.com>