修复 OCR libGL.so.1 缺失:安装 libgl1 等系统依赖。

- 新增 deploy/install-ocr-deps.sh,update.sh 自动检查

- install.sh 预装 OpenGL/Mesa 库
This commit is contained in:
dekun
2026-06-28 13:57:49 +08:00
parent a145f38606
commit 1c50ebc0ec
7 changed files with 67 additions and 3 deletions
+5
View File
@@ -41,6 +41,11 @@ if command -v pm2 &>/dev/null; then
pm2 delete grade-api grade-web 2>/dev/null || true
fi
if [[ "${EUID:-$(id -u)}" -eq 0 ]]; then
log_info "检查 OCR 系统依赖(libGL)…"
bash "${INSTALL_DIR}/deploy/install-ocr-deps.sh"
fi
log_info "重启 systemd 服务…"
systemctl restart grade-archive