Files
Leantime/.dev/remote-deploy/27_verify_site.sh

19 lines
895 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "=== 首页 HTTP 状态 ==="
curl -s -o /dev/null -w "HTTP=%{http_code}\n" http://127.0.0.1:8081/
echo "=== 首页标题与品牌 ==="
BODY=$(curl -s http://127.0.0.1:8081/)
echo "$BODY" | grep -oE "<title>[^<]*</title>" | head -1
echo "$BODY" | grep -qi "OneBot" && echo "✅ 含 OneBot 品牌" || echo "❌ 无 OneBot"
echo "$BODY" | grep -qi "leantime" && echo "⚠️ 仍含 leantime" || echo "✅ 无 leantime 残留"
echo "=== logo 文件可达 ==="
curl -s -o /dev/null -w "logo.svg HTTP=%{http_code} size=%{size_download}\n" http://127.0.0.1:8081/dist/images/logo.svg
echo "=== PDF 预览组件挂载 ==="
echo "$BODY" | grep -q "ob-pdf" && echo "✅ pdfPreview 组件已挂载" || echo "⚠️ 未在首页检测到 pdfPreview登录页可能不加载"
echo "=== 登录页面字段 ==="
echo "$BODY" | grep -oE "(name=\"(username|password|email)\")" | sort -u