fixes
This commit is contained in:
parent
dbbf859a7b
commit
73bd1f79be
@ -30,7 +30,7 @@ function update_script() {
|
|||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/paperless-ngx/paperless-ngx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/paperless-ngx/paperless-ngx/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
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
|
||||||
msg_info "Stopping Paperless services"
|
msg_info "Stopping Paperless services"
|
||||||
systemctl stop paperless-{webserver,scheduler,task-queue,consumer}.service &>/dev/null || true
|
systemctl stop paperless-{webserver,scheduler,task-queue,consumer}
|
||||||
msg_ok "Stopped Paperless services"
|
msg_ok "Stopped Paperless services"
|
||||||
|
|
||||||
BACKUP_DIR="/opt/paperless-backup-$(date +%F_%T | tr ':' '-')"
|
BACKUP_DIR="/opt/paperless-backup-$(date +%F_%T | tr ':' '-')"
|
||||||
@ -47,7 +47,7 @@ function update_script() {
|
|||||||
|
|
||||||
BACKUP_DIR="/opt/paperless-backup-$(date +%F_%T | tr ':' '-')"
|
BACKUP_DIR="/opt/paperless-backup-$(date +%F_%T | tr ':' '-')"
|
||||||
|
|
||||||
setup_gs
|
setup_ghostscript
|
||||||
setup_uv
|
setup_uv
|
||||||
|
|
||||||
msg_info "Backing up Paperless folders"
|
msg_info "Backing up Paperless folders"
|
||||||
|
@ -61,7 +61,7 @@ $STD apt-get install -y \
|
|||||||
# $STD make install
|
# $STD make install
|
||||||
msg_ok "Installed OCR Dependencies"
|
msg_ok "Installed OCR Dependencies"
|
||||||
|
|
||||||
setup_gs
|
setup_ghostscript
|
||||||
|
|
||||||
msg_info "Installing JBIG2"
|
msg_info "Installing JBIG2"
|
||||||
$STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc
|
$STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc
|
||||||
|
@ -847,7 +847,7 @@ function ensure_usr_local_bin_persist() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup_gs() {
|
function setup_ghostscript() {
|
||||||
msg_info "Setup Ghostscript"
|
msg_info "Setup Ghostscript"
|
||||||
local TMP_DIR
|
local TMP_DIR
|
||||||
TMP_DIR=$(mktemp -d)
|
TMP_DIR=$(mktemp -d)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user