Update paperless-ngx-install.sh

shfmt
This commit is contained in:
tteckster 2023-05-15 09:25:03 -04:00 committed by GitHub
parent c12f2773e7
commit 9933ff3711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
# License: MIT # License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE # https://github.com/tteck/Proxmox/raw/main/LICENSE
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color color
verb_ip6 verb_ip6
catch_errors catch_errors
@ -15,52 +15,52 @@ update_os
msg_info "Installing Python3" msg_info "Installing Python3"
$STD apt-get install -y --no-install-recommends \ $STD apt-get install -y --no-install-recommends \
python3 \ python3 \
python3-pip \ python3-pip \
python3-dev \ python3-dev \
python3-setuptools \ python3-setuptools \
python3-wheel python3-wheel
msg_ok "Installed Python3" msg_ok "Installed Python3"
msg_info "Installing Dependencies (Patience)" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y --no-install-recommends \ $STD apt-get install -y --no-install-recommends \
redis \ redis \
postgresql \ postgresql \
build-essential \ build-essential \
imagemagick \ imagemagick \
fonts-liberation \ fonts-liberation \
optipng \ optipng \
gnupg \ gnupg \
libpq-dev \ libpq-dev \
libmagic-dev \ libmagic-dev \
mime-support \ mime-support \
libzbar0 \ libzbar0 \
poppler-utils \ poppler-utils \
default-libmysqlclient-dev \ default-libmysqlclient-dev \
automake \ automake \
libtool \ libtool \
pkg-config \ pkg-config \
git \ git \
curl \ curl \
libtiff-dev \ libtiff-dev \
libpng-dev \ libpng-dev \
libleptonica-dev \ libleptonica-dev \
sudo \ sudo \
mc mc
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing OCR Dependencies (Patience)" msg_info "Installing OCR Dependencies (Patience)"
$STD apt-get install -y --no-install-recommends \ $STD apt-get install -y --no-install-recommends \
unpaper \ unpaper \
ghostscript \ ghostscript \
icc-profiles-free \ icc-profiles-free \
qpdf \ qpdf \
liblept5 \ liblept5 \
libxml2 \ libxml2 \
pngquant \ pngquant \
zlib1g \ zlib1g \
tesseract-ocr \ tesseract-ocr \
tesseract-ocr-eng tesseract-ocr-eng
msg_ok "Installed OCR Dependencies" msg_ok "Installed OCR Dependencies"
msg_info "Installing JBIG2" msg_info "Installing JBIG2"
@ -76,7 +76,7 @@ msg_ok "Installed JBIG2"
msg_info "Installing Paperless-ngx (Patience)" msg_info "Installing Paperless-ngx (Patience)"
Paperlessngx=$(wget -q https://github.com/paperless-ngx/paperless-ngx/releases/latest -O - | grep "title>Release" | cut -d " " -f 5) Paperlessngx=$(wget -q https://github.com/paperless-ngx/paperless-ngx/releases/latest -O - | grep "title>Release" | cut -d " " -f 5)
cd /opt cd /opt
$STD wget https://github.com/paperless-ngx/paperless-ngx/releases/download/$Paperlessngx/paperless-ngx-$Paperlessngx.tar.xz $STD wget https://github.com/paperless-ngx/paperless-ngx/releases/download/$Paperlessngx/paperless-ngx-$Paperlessngx.tar.xz
$STD tar -xf paperless-ngx-$Paperlessngx.tar.xz -C /opt/ $STD tar -xf paperless-ngx-$Paperlessngx.tar.xz -C /opt/
mv paperless-ngx paperless mv paperless-ngx paperless
rm paperless-ngx-$Paperlessngx.tar.xz rm paperless-ngx-$Paperlessngx.tar.xz