diff --git a/README.md b/README.md index 796c273..d24d658 100644 --- a/README.md +++ b/README.md @@ -174,4 +174,4 @@ CSRF_TRUSTED_ORIGINS = ['https://yourdomain.com'] MIT License — see [LICENSE](LICENSE) for details. -**Prepared with ❤️ by [MohammadAmin Baranzehi](https://amin.baranzehi.com)** +**Prepared by [MohammadAmin Baranzehi](https://amin.baranzehi.com)** diff --git a/cli.py b/cli.py index f1c57c4..b4004bb 100644 --- a/cli.py +++ b/cli.py @@ -47,27 +47,27 @@ CYAN = "\033[96m" def info(msg: str) -> None: - print(f" {CYAN}→{RESET} {msg}") + print(f" {CYAN}[*]{RESET} {msg}") def success(msg: str) -> None: - print(f" {GREEN}✔{RESET} {msg}") + print(f" {GREEN}[+]{RESET} {msg}") def warn(msg: str) -> None: - print(f" {YELLOW}⚠{RESET} {msg}") + print(f" {YELLOW}[!]{RESET} {msg}") def error(msg: str) -> None: - print(f" {RED}✘{RESET} {msg}") + print(f" {RED}[-]{RESET} {msg}") def banner() -> None: print(f""" -{BOLD}┌──────────────────────────────────────────────────────────┐ -│ HestiaCP + Django + Gunicorn — Deployment Engine │ -│ Prepared by MohammadAmin Baranzehi (amin.baranzehi.com) │ -└──────────────────────────────────────────────────────────┘{RESET} +{BOLD}+----------------------------------------------------------+ +| HestiaCP + Django + Gunicorn - Deployment Engine | +| Prepared by MohammadAmin Baranzehi (amin.baranzehi.com) | ++----------------------------------------------------------+{RESET} """) diff --git a/core/doctor.py b/core/doctor.py index 4702162..86c32f2 100644 --- a/core/doctor.py +++ b/core/doctor.py @@ -254,28 +254,29 @@ def print_report(report: DiagnosticReport) -> None: GREEN = "\033[92m" YELLOW = "\033[93m" RED = "\033[91m" + CYAN = "\033[96m" BOLD = "\033[1m" dc = report.domain_config - print(f"\n{BOLD}╔══════════════════════════════════════════════════════╗{RESET}") - print(f"{BOLD}║ Deployment Doctor — {dc.domain:<33}║{RESET}") - print(f"{BOLD}╚══════════════════════════════════════════════════════╝{RESET}\n") + print(f"\n{BOLD}+======================================================+{RESET}") + print(f"{BOLD}| Deployment Doctor - {dc.domain:<32}|{RESET}") + print(f"{BOLD}+======================================================+{RESET}\n") status_icons = { - DiagnosticStatus.OK: f"{GREEN}✔{RESET}", - DiagnosticStatus.WARNING: f"{YELLOW}⚠{RESET}", - DiagnosticStatus.CRITICAL: f"{RED}✘{RESET}", + DiagnosticStatus.OK: f"{GREEN}[+]{RESET}", + DiagnosticStatus.WARNING: f"{YELLOW}[!]{RESET}", + DiagnosticStatus.CRITICAL: f"{RED}[-]{RESET}", } for check in report.checks: - icon = status_icons.get(check.status, "?") + icon = status_icons.get(check.status, "[?]") print(f" {icon} {BOLD}{check.name}{RESET}: {check.message}") if check.suggestion: - print(f" └─ suggestion: {check.suggestion}") + print(f" [-] suggestion: {check.suggestion}") print() if report.is_healthy: - print(f" {GREEN}{BOLD}All checks passed! Your deployment is healthy.{RESET}\n") + print(f" {GREEN}{BOLD}[+] All checks passed! Your deployment is healthy.{RESET}\n") else: c = report.critical_count w = report.warning_count diff --git a/hdg b/hdg index b288207..280bc0d 100755 --- a/hdg +++ b/hdg @@ -36,10 +36,10 @@ CYAN='\033[0;96m' BOLD='\033[1m' NC='\033[0m' -info() { echo -e " ${CYAN}→${NC} $*"; } -success() { echo -e " ${GREEN}✔${NC} $*"; } -warn() { echo -e " ${YELLOW}⚠${NC} $*"; } -error() { echo -e " ${RED}✘${NC} $*"; } +info() { echo -e " ${CYAN}[*]${NC} $*"; } +success() { echo -e " ${GREEN}[+]${NC} $*"; } +warn() { echo -e " ${YELLOW}[!]${NC} $*"; } +error() { echo -e " ${RED}[-]${NC} $*"; } # ── Self-installation to /usr/local/bin ─────────────────────────────────── install_global_links() { @@ -189,7 +189,7 @@ SERVICE_NAME="gunicorn-${DOMAIN}" SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" if [ ! -d "$WEBDIR" ]; then - error "Domain directory not found → $WEBDIR" + error "Domain directory not found: $WEBDIR" exit 1 fi