From b9e5bbf00f78348e3296b066c8a78571067a4737 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 30 Apr 2025 10:18:33 +0200 Subject: [PATCH] Update paperless-ngx-install.sh --- install/paperless-ngx-install.sh | 39 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index fa79164..ecdf973 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -41,26 +41,25 @@ $STD apt-get install -y \ setup_uv msg_ok "Installed Dependencies" -# msg_info "Installing OCR Dependencies (Patience)" -# $STD apt-get install -y \ -# unpaper \ -# icc-profiles-free \ -# qpdf \ -# liblept5 \ -# libxml2 \ -# pngquant \ -# zlib1g \ -# tesseract-ocr \ -# tesseract-ocr-eng - -# cd /tmp -# curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10051/ghostpdl-10.05.1.tar.gz" -o "ghostscript.tar.gz" -# tar -xzf ghostscript.tar.gz -# cd ghostpdl-10.05.1 -# $STD ./configure -# $STD make -# $STD make install -# msg_ok "Installed OCR Dependencies" +msg_info "Installing OCR Dependencies (Patience)" +$STD apt-get install -y \ + unpaper \ + icc-profiles-free \ + qpdf \ + liblept5 \ + libxml2 \ + pngquant \ + zlib1g \ + tesseract-ocr \ + tesseract-ocr-eng +cd /tmp +curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10051/ghostpdl-10.05.1.tar.gz" -o "ghostscript.tar.gz" +tar -xzf ghostscript.tar.gz +cd ghostpdl-10.05.1 +$STD ./configure +$STD make +$STD make install +msg_ok "Installed OCR Dependencies" msg_info "Installing JBIG2" $STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc