Update paperless-ngx-install.sh

This commit is contained in:
CanbiZ 2025-01-23 14:51:57 +01:00 committed by GitHub
parent 3ee076e7ab
commit 489a1fb560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,19 +61,13 @@ $STD apt-get install -y \
tesseract-ocr \ tesseract-ocr \
tesseract-ocr-eng tesseract-ocr-eng
echo "deb http://deb.debian.org/debian trixie main" | tee /etc/apt/sources.list.d/trixie.list >/dev/null cd /tmp
$STD cat <<EOF | sudo tee /etc/apt/preferences.d/ghostscript wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz
Package: * $STD tar -xzf ghostscript-10.04.0.tar.gz
Pin: release n=trixie cd ghostscript-10.04.0
Pin-Priority: 100 $STD ./configure
$STD make
Package: ghostscript $STD sudo make install
Pin: release n=trixie
Pin-Priority: 990
EOF
$STD apt-get update
$STD echo "libc6 libraries/restart-without-asking boolean true" | sudo debconf-set-selections
DEBIAN_FRONTEND=noninteractive apt install -t trixie ghostscript -y -qq
msg_ok "Installed OCR Dependencies" msg_ok "Installed OCR Dependencies"
msg_info "Installing JBIG2" msg_info "Installing JBIG2"
@ -235,6 +229,7 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /opt/paperless/docker rm -rf /opt/paperless/docker
rm -rf /tmp/ghostscript*
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"