Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/8cdb218e381b811a52e4e91ef02711af352a5030?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
21 additions and
1 deletions
@ -67,6 +67,18 @@ function update_script() {
header_info
header_info
if [ " $UPD " = = "1" ] ; then
if [ " $UPD " = = "1" ] ; then
if [ [ " ${ RELEASE } " != " $( cat /opt/${ APP } _version.txt) " ] ] || [ [ ! -f /opt/${ APP } _version.txt ] ] ; then
if [ [ " ${ RELEASE } " != " $( cat /opt/${ APP } _version.txt) " ] ] || [ [ ! -f /opt/${ APP } _version.txt ] ] ; then
if [ [ " $( gs --version 2>/dev/null) " != "10.04.0" ] ] ; then
msg_info "Updating Ghostscript"
cd /tmp
wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz
tar -xzf ghostscript-10.04.0.tar.gz
cd ghostscript-10.04.0
./configure & >/dev/null
make & >/dev/null
sudo make install & >/dev/null
rm -rf /tmp/ghostscript*
msg_ok "Ghostscript updated to 10.04.0"
fi
msg_info "Stopping all Paperless-ngx Services"
msg_info "Stopping all Paperless-ngx Services"
systemctl stop paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue.service
systemctl stop paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue.service
msg_ok "Stopped all Paperless-ngx Services"
msg_ok "Stopped all Paperless-ngx Services"
@ -52,7 +52,6 @@ msg_ok "Installed Python3 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 \
icc-profiles-free \
icc-profiles-free \
qpdf \
qpdf \
liblept5 \
liblept5 \
@ -61,6 +60,14 @@ $STD apt-get install -y --no-install-recommends \
zlib1g \
zlib1g \
tesseract-ocr \
tesseract-ocr \
tesseract-ocr-eng
tesseract-ocr-eng
cd /tmp
wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz
$STD tar -xzf ghostscript-10.04.0.tar.gz
cd ghostscript-10.04.0
$STD ./configure
$STD make
$STD sudo make install
msg_ok "Installed OCR Dependencies"
msg_ok "Installed OCR Dependencies"
msg_info "Installing JBIG2"
msg_info "Installing JBIG2"
@ -221,6 +228,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"