From 9afca673bbf4d0efa915a9cb65947d264f993019 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sat, 21 Jan 2023 22:47:08 +0000 Subject: [PATCH 1/4] Auto-update README --- README_fr.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README_fr.md b/README_fr.md index 79b2c2f..d673265 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,15 +5,15 @@ It shall NOT be edited by hand. # Paperless-ngx pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/paperless-ngx.svg)](https://dash.yunohost.org/appci/app/paperless-ngx) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/paperless-ngx.svg)](https://dash.yunohost.org/appci/app/paperless-ngx) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.maintain.svg) [![Installer Paperless-ngx avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=paperless-ngx) *[Read this readme in english.](./README.md)* -> *Ce package vous permet d'installer Paperless-ngx rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer Paperless-ngx rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble Paperless-ngx is a document management system that transforms your physical documents into a searchable online archive so you can keep, well, *less paper*. @@ -36,9 +36,9 @@ Paperless-ngx is a document management system that transforms your physical docu **Démo :** https://demo.paperless-ngx.com/ -## Captures d'écran +## Captures d’écran -![Capture d'écran de Paperless-ngx](./doc/screenshots/documents-wchrome-dark.png) +![Capture d’écran de Paperless-ngx](./doc/screenshots/documents-wchrome-dark.png) ## Avertissements / informations importantes @@ -58,10 +58,10 @@ Paperless-ngx is a document management system that transforms your physical docu ## Documentations et ressources -* Site officiel de l'app : +* Site officiel de l’app : * Documentation officielle utilisateur : -* Documentation officielle de l'admin : -* Dépôt de code officiel de l'app : +* Documentation officielle de l’admin : +* Dépôt de code officiel de l’app : * Documentation YunoHost pour cette app : * Signaler un bug : @@ -77,4 +77,4 @@ ou sudo yunohost app upgrade paperless-ngx -u https://github.com/YunoHost-Apps/paperless-ngx_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file From 25cdb35f24422a18e9230f1c84ea0bcf8c6bfbe7 Mon Sep 17 00:00:00 2001 From: Emmanuel Bouaziz Date: Fri, 14 Apr 2023 10:37:54 +0200 Subject: [PATCH 2/4] Updates to v1.13.0 --- README.md | 2 +- README_fr.md | 4 ++-- conf/app.src | 6 +++--- manifest.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 59b6ac2..6e26b18 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Paperless-ngx is a document management system that transforms your physical docu * [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html). -**Shipped version:** 1.11.3~ynh1 +**Shipped version:** 1.13.0~ynh1 **Demo:** https://demo.paperless-ngx.com/ diff --git a/README_fr.md b/README_fr.md index d673265..9f37052 100644 --- a/README_fr.md +++ b/README_fr.md @@ -32,7 +32,7 @@ Paperless-ngx is a document management system that transforms your physical docu * [More screenshots are available in the documentation](https://paperless-ngx.readthedocs.io/en/latest/screenshots.html). -**Version incluse :** 1.11.3~ynh1 +**Version incluse :** 1.13.0~ynh1 **Démo :** https://demo.paperless-ngx.com/ @@ -77,4 +77,4 @@ ou sudo yunohost app upgrade paperless-ngx -u https://github.com/YunoHost-Apps/paperless-ngx_ynh/tree/testing --debug ``` -**Plus d’infos sur le packaging d’applications :** \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** diff --git a/conf/app.src b/conf/app.src index 5940cdf..53e0e54 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,7 +1,7 @@ -SOURCE_URL=https://github.com/paperless-ngx/paperless-ngx/releases/download/v1.11.3/paperless-ngx-v1.11.3.tar.xz -SOURCE_SUM=c0636475cce057e50377d64ef815cc496a2da5eb44ffe73f8c90001fee925e9b +SOURCE_URL=https://github.com/paperless-ngx/paperless-ngx/releases/download/v1.13.0/paperless-ngx-v1.13.0.tar.xz +SOURCE_SUM=f6544fdc300d349209385b429f8d38c76bdcde306771950604174f8f732f53ad SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=tar.gz +SOURCE_FORMAT=tar.xz SOURCE_IN_SUBDIR=true SOURCE_FILENAME= SOURCE_EXTRACT=true diff --git a/manifest.json b/manifest.json index 3754aa2..ddd1a4f 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Scan, index and archive all your physical documents", "fr": "Scannez, triez et archivez tous vos documents papiers" }, - "version": "1.11.3~ynh1", + "version": "1.13.0~ynh1", "url": "https://paperless-ngx.com", "upstream": { "license": "GPL-3.0-or-later", From 1bebd75c16a120a27cee8be69e0de5210a7394c8 Mon Sep 17 00:00:00 2001 From: Emmanuel Bouaziz Date: Sat, 15 Apr 2023 17:40:41 +0200 Subject: [PATCH 3/4] Ensures temp dir ownership --- scripts/install | 9 +++++++++ scripts/remove | 4 ++-- scripts/upgrade | 9 +++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 604d0b8..2fd47aa 100755 --- a/scripts/install +++ b/scripts/install @@ -156,6 +156,15 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" +#================================================= +# CREATE TEMP DIRECTORY +#================================================= +ynh_script_progression --message="Creating temp directory..." --weight=1 +mkdir -p "/tmp/$app" +chmod 700 "/tmp/$app" +chmod -R go-rwx "/tmp/$app" +chown -R $app:$app "/tmp/$app" + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/remove b/scripts/remove index 0730658..3931665 100755 --- a/scripts/remove +++ b/scripts/remove @@ -119,8 +119,8 @@ ynh_remove_app_dependencies #================================================= ynh_script_progression --message="Removing various files..." --weight=1 -# Remove a directory securely -#ynh_secure_remove --file="/etc/$app" +# Remove temp directory securely +ynh_secure_remove --file="/tmp/$app" # Remove the log files ynh_secure_remove --file="/var/log/$app" diff --git a/scripts/upgrade b/scripts/upgrade index 7db5401..c234e8e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,6 +147,15 @@ ynh_add_config --template="paperless.conf.example" --destination="$final_path/pa chmod 400 "$final_path/paperless.conf" chown $app:$app "$final_path/paperless.conf" +#================================================= +# ENSURE TEMP DIR OWNERSHIP +#================================================= +ynh_script_progression --message="Updating temp directory ownership..." --weight=1 +mkdir -p "/tmp/$app" +chmod 700 "/tmp/$app" +chmod -R go-rwx "/tmp/$app" +chown -R $app:$app "/tmp/$app" + #================================================= # SETUP THE DATABASE #================================================= From 610425de7a723709a802379c5fdfd59e387f1022 Mon Sep 17 00:00:00 2001 From: Emmanuel Bouaziz Date: Sat, 15 Apr 2023 19:30:06 +0200 Subject: [PATCH 4/4] Removes temp dir on install, upgrade and restore operations, let the service create it. --- scripts/install | 9 +++------ scripts/restore | 6 ++++++ scripts/upgrade | 9 +++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 2fd47aa..6d1be66 100755 --- a/scripts/install +++ b/scripts/install @@ -157,13 +157,10 @@ chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" #================================================= -# CREATE TEMP DIRECTORY +# REMOVE TEMP DIRECTORY #================================================= -ynh_script_progression --message="Creating temp directory..." --weight=1 -mkdir -p "/tmp/$app" -chmod 700 "/tmp/$app" -chmod -R go-rwx "/tmp/$app" -chown -R $app:$app "/tmp/$app" +ynh_script_progression --message="Cleanup temp directory..." --weight=1 +ynh_secure_remove --file="/tmp/$app" #================================================= # ADD A CONFIGURATION diff --git a/scripts/restore b/scripts/restore index 9576832..1bd65ad 100755 --- a/scripts/restore +++ b/scripts/restore @@ -87,6 +87,12 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:$app "$datadir" +#================================================= +# REMOVE TEMP DIRECTORY +#================================================= +ynh_script_progression --message="Cleanup temp directory..." --weight=1 +ynh_secure_remove --file="/tmp/$app" + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index c234e8e..979ea87 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,13 +148,10 @@ chmod 400 "$final_path/paperless.conf" chown $app:$app "$final_path/paperless.conf" #================================================= -# ENSURE TEMP DIR OWNERSHIP +# REMOVE TEMP DIRECTORY #================================================= -ynh_script_progression --message="Updating temp directory ownership..." --weight=1 -mkdir -p "/tmp/$app" -chmod 700 "/tmp/$app" -chmod -R go-rwx "/tmp/$app" -chown -R $app:$app "/tmp/$app" +ynh_script_progression --message="Cleanup temp directory..." --weight=1 +ynh_secure_remove --file="/tmp/$app" #================================================= # SETUP THE DATABASE