mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-12-04 10:24:50 +03:00
Update paperless to v3.0.1
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com> Co-authored-by: nmfretz <nmfretz@gmail.com>
This commit is contained in:
3 files changed
+87
-11
No files matched your search
@@ -24,7 +24,7 @@ services:
|
||||
POSTGRES_PASSWORD: paperless
|
||||
|
||||
webserver:
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:3.0.0@sha256:80f96a38de1a04c49a466b236b9c34491e6c4b29cc1e216a4a5134ba5dd22059
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:3.0.1@sha256:087be9870c285b06fea34cfd6490c02eb3281052f6ff338ca6cd1f068ff3ff28
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- db
|
||||
@@ -34,7 +34,8 @@ services:
|
||||
volumes:
|
||||
- ${APP_DATA_DIR}/data/data:/usr/src/paperless/data
|
||||
- ${APP_DATA_DIR}/data/media:/usr/src/paperless/media
|
||||
# TODO: move these inside the paperless app data dir once umbrelOS supports navigating to it via the UI
|
||||
# TODO(#1466): default these to Paperless app data once users can remap app
|
||||
# folders to shared storage, preserving network-share workflows.
|
||||
- ${UMBREL_ROOT}/data/storage/paperless/export:/usr/src/paperless/export
|
||||
- ${UMBREL_ROOT}/data/storage/paperless/consume:/usr/src/paperless/consume
|
||||
environment:
|
||||
|
||||
Executable
+79
@@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
APP_ID="${APP_ID:-paperless}"
|
||||
APP_ROOT_DIR="${APP_DATA_DIR:-$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")}"
|
||||
UMBREL_ROOT="${UMBREL_ROOT:-$(readlink -f "${APP_ROOT_DIR}/../..")}"
|
||||
PGDATA_DIR="${APP_ROOT_DIR}/data/pgdata"
|
||||
|
||||
log() {
|
||||
echo "paperless pre-start: $*"
|
||||
}
|
||||
|
||||
app_compose() {
|
||||
"${UMBREL_ROOT}/scripts/app" compose "${APP_ID}" "$@"
|
||||
}
|
||||
|
||||
# Fresh installs have no existing PostgreSQL data yet, so there is no Paperless
|
||||
# migration history to repair before the official image runs its migrations.
|
||||
if [[ ! -f "${PGDATA_DIR}/PG_VERSION" ]]; then
|
||||
log "no existing PostgreSQL data found; skipping migration-history backfill"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
log "checking Paperless mail migration history"
|
||||
app_compose up --detach db >/dev/null
|
||||
|
||||
for _ in {1..60}; do
|
||||
if app_compose exec -T db pg_isready -U paperless -d paperless >/dev/null 2>&1; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
|
||||
if ! app_compose exec -T db pg_isready -U paperless -d paperless >/dev/null 2>&1; then
|
||||
log "PostgreSQL did not become ready for migration-history check"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
migration_state="$(
|
||||
app_compose exec -T db psql -U paperless -d paperless -v ON_ERROR_STOP=1 -At <<'SQL'
|
||||
SELECT CASE
|
||||
WHEN to_regclass('public.django_migrations') IS NULL THEN 'no-migrations-table'
|
||||
WHEN EXISTS (
|
||||
SELECT 1 FROM django_migrations
|
||||
WHERE app = 'paperless_mail' AND name = '0001_1_clamp_mailrule_maximum_age'
|
||||
) THEN 'already-recorded'
|
||||
WHEN EXISTS (
|
||||
SELECT 1 FROM django_migrations
|
||||
WHERE app = 'paperless_mail' AND name = '0002_optimize_integer_field_sizes'
|
||||
) THEN 'backfill-needed'
|
||||
ELSE 'not-needed'
|
||||
END;
|
||||
SQL
|
||||
)"
|
||||
|
||||
case "${migration_state}" in
|
||||
backfill-needed)
|
||||
log "recording Paperless 3.0.1 split mail-rule clamp migration for existing 3.0.0 database"
|
||||
app_compose exec -T db psql -U paperless -d paperless -v ON_ERROR_STOP=1 <<'SQL'
|
||||
INSERT INTO django_migrations (app, name, applied)
|
||||
SELECT 'paperless_mail', '0001_1_clamp_mailrule_maximum_age', CURRENT_TIMESTAMP
|
||||
WHERE EXISTS (
|
||||
SELECT 1 FROM django_migrations
|
||||
WHERE app = 'paperless_mail' AND name = '0002_optimize_integer_field_sizes'
|
||||
)
|
||||
AND NOT EXISTS (
|
||||
SELECT 1 FROM django_migrations
|
||||
WHERE app = 'paperless_mail' AND name = '0001_1_clamp_mailrule_maximum_age'
|
||||
);
|
||||
SQL
|
||||
;;
|
||||
already-recorded|not-needed|no-migrations-table)
|
||||
log "migration-history backfill ${migration_state}; no action needed"
|
||||
;;
|
||||
*)
|
||||
log "unexpected migration state: ${migration_state}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@@ -1,8 +1,8 @@
|
||||
manifestVersion: 1
|
||||
manifestVersion: 1.1
|
||||
id: paperless
|
||||
category: files
|
||||
name: Paperless-ngx
|
||||
version: "3.0.0"
|
||||
version: "3.0.1"
|
||||
tagline: Transform your physical documents into a searchable online archive
|
||||
description: >-
|
||||
Paperless-ngx is a community-supported open-source document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper.
|
||||
@@ -23,17 +23,13 @@ description: >-
|
||||
|
||||
- Paperless stores your documents plain on disk. Filenames and folders are managed by paperless and their format can be configured freely with different configurations assigned to different documents.
|
||||
releaseNotes: >-
|
||||
⚠️ Paperless-ngx 3.0 is a major update with breaking changes for custom integrations: API v1 compatibility has been removed, legacy document/thumbnail encryption is no longer supported, and pre/post-consume scripts no longer receive positional arguments.
|
||||
Paperless-ngx 3.0.1 is a follow-up to the recent Paperless-ngx 3.0 major update. If you're updating from a pre-3.0 version, note that API v1 compatibility has been removed, legacy document/thumbnail encryption is no longer supported, and pre/post-consume scripts no longer receive positional arguments.
|
||||
|
||||
|
||||
Highlights in this release:
|
||||
- Replaced the Whoosh search backend with Tantivy for faster and more capable search
|
||||
- Added document file versions and bundled share links
|
||||
- Added Paperless AI and remote OCR support
|
||||
- Improved consumer behavior, permissions checks, mail-rule migration handling, and security around AI features
|
||||
If you're already on 3.0.0, this update fixes document-list performance issues, mail-rule migration handling, AI chat wrapping, create-dialog attribute handling, and several smaller UI/API checks.
|
||||
|
||||
|
||||
Full release notes are found at https://github.com/paperless-ngx/paperless-ngx/releases/tag/v3.0.0
|
||||
Full release notes can be found at https://github.com/paperless-ngx/paperless-ngx/releases/tag/v3.0.1
|
||||
backupIgnore:
|
||||
- data/redisdata/*
|
||||
developer: Paperless-ngx Community
|
||||
|
||||
Reference in new issue
Block a user