From 1c42003b641fcfc155f808d0e19e35c5933f459b Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 22 Dec 2022 11:48:27 -0500 Subject: [PATCH] Update paperless-ngx-update.sh add tag --- misc/paperless-ngx-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/paperless-ngx-update.sh b/misc/paperless-ngx-update.sh index 2f478912..3b1d4719 100644 --- a/misc/paperless-ngx-update.sh +++ b/misc/paperless-ngx-update.sh @@ -58,8 +58,8 @@ sleep 1 msg_ok "Stopped Paperless-ngx" msg_info "Updating to ${RELEASE}" -if [ "$(dpkg -l | awk '/libmariadb-dev/ {print }'|wc -l)" != 2 ]; then apt-get install libmariadb-dev; fi &>/dev/null -if [ "$(dpkg -l | awk '/libmariadb-dev-compat/ {print }'|wc -l)" != 1 ]; then apt-get install libmariadb-dev-compat; fi &>/dev/null +if [ "$(dpkg -l | awk '/libmariadb-dev/ {print }'|wc -l)" != 2 ]; then apt-get install -y libmariadb-dev; fi &>/dev/null +if [ "$(dpkg -l | awk '/libmariadb-dev-compat/ {print }'|wc -l)" != 1 ]; then apt-get install -y libmariadb-dev-compat; fi &>/dev/null wget https://github.com/paperless-ngx/paperless-ngx/releases/download/$RELEASE/paperless-ngx-$RELEASE.tar.xz &>/dev/null tar -xf paperless-ngx-$RELEASE.tar.xz &>/dev/null cp -r /opt/paperless/paperless.conf paperless-ngx/