fix: OCR 在一键部署时注册 systemd 开机自启
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user