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
+3 -4
View File
@@ -39,11 +39,10 @@ pip_install_with_fallback -r requirements.txt
deactivate
cd "${INSTALL_DIR}"
log_info "更新 OCR Worker 并重启 screen…"
log_info "更新 OCR Worker 并重启 systemd 服务…"
install_ocr_worker
stop_ocr_screen
start_ocr_screen
wait_ocr_healthy || log_warn "OCR 加载中,稍后: bash deploy/ocr-screen.sh status"
start_ocr_service
wait_ocr_healthy || log_warn "OCR 加载中,稍后: systemctl status ocr-worker"
stop_legacy_pm2
install_ocr_deps_safe