Update paperless-ngx.sh

- fix syntax error in conditional expression
- fixes https://github.com/tteck/Proxmox/issues/2938
pull/2942/head
tteckster 7 months ago committed by GitHub
parent bd94aad7fa
commit d46076cab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -66,7 +66,7 @@ function update_script() {
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
header_info header_info
if [ "$UPD" == "1" ]; then if [ "$UPD" == "1" ]; then
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt 2>/dev/null ]]; then if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
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"

Loading…
Cancel
Save

Powered by BW's shoe-string budget.