Files
openhands bd977da3a5
CI / check (push) Successful in 4m7s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m19s
feat: add db-restore, maintenance, doctor scripts and update dashboard
2026-09-13 21:15:14 +02:00

18 lines
590 B
Bash
Executable File

#!/usr/bin/env bash
# System diagnostic tool
echo "=== Doctor Report ==="
echo "Checking Docker..."
docker ps > /dev/null || echo "Error: Docker not running."
echo "Checking port 3002..."
if lsof -i :3002 > /dev/null; then echo "Port 3002 is in use."; else echo "Port 3002 is free."; fi
echo "Checking .env..."
if [ -f .env ]; then echo ".env exists."; else echo "Error: .env missing."; fi
echo "Checking health..."
if curl -s http://localhost:3002/api/health > /dev/null; then echo "Health endpoint OK."; else echo "Health endpoint failing."; fi
echo "Disk usage:"
df -h / | tail -n 1