Fixed multiple issues in health check script:
1. Redis check failing due to missing .env loading
- Re-added .env sourcing at script start
- Redis container doesn't have REDIS_HOST_PASSWORD in env
- Script needs to load it from .env file
2. Script exiting early when du returns non-zero exit code
- du returns error code 1 when it can't read some subdirectories (permissions)
- Even though it outputs the size successfully
- Added || echo "" to handle non-zero exit codes gracefully
- Fixed for DATA_SIZE, DB_SIZE, and LOGS_SIZE checks
3. Fixed typo in DB_SIZE validation (was checking DATA_SIZE instead)
These fixes ensure:
- Complete health check output with summary section
- No premature script exits
- Proper Redis authentication testing
- Robust handling of permission errors in du commands
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>