fix: OCR 在一键部署时注册 systemd 开机自启

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-18 00:31:13 +08:00
parent 8cf375d178
commit 2fea777600
7 changed files with 142 additions and 101 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ log_info "开始修复 grade-archive 服务…"
stop_legacy_pm2
install_ocr_deps_safe
if [[ -x "${INSTALL_DIR}/deploy/ocr-worker/.venv/bin/uvicorn" ]]; then
start_ocr_screen || log_warn "OCR screen 启动失败"
start_ocr_service || log_warn "OCR systemd 启动失败"
wait_ocr_healthy || log_warn "OCR 未就绪"
fi
setup_systemd_service