diff --git a/README.md b/README.md index 59b6ac2..4c418c6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Paperless-ngx for YunoHost -[![Integration level](https://dash.yunohost.org/integration/paperless-ngx.svg)](https://dash.yunohost.org/appci/app/paperless-ngx) ![Working status](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/paperless-ngx.svg)](https://dash.yunohost.org/appci/app/paperless-ngx) ![Working status](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/paperless-ngx.maintain.svg) + [![Install Paperless-ngx with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=paperless-ngx) *[Lire ce readme en français.](./README_fr.md)* @@ -32,7 +33,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/ @@ -51,7 +52,7 @@ Paperless-ngx is a document management system that transforms your physical docu * Example for french `sudo apt-get install tesseract-ocr-fra` * Example for german `sudo apt-get install tesseract-ocr-deu` * Modify config to add new languages - * Open config-panel: https://my-domain.tld/yunohost/admin/#/apps/$app_id/config-panel + * Open the configuration tab under: https://my-domain.tld/yunohost/admin/#/apps/$app_id/ * You can combine multiple languages like this: * One language: eng * Two languages: eng+fra diff --git a/README_fr.md b/README_fr.md index d673265..0ce9efd 100644 --- a/README_fr.md +++ b/README_fr.md @@ -5,7 +5,8 @@ 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)* @@ -32,7 +33,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/ @@ -51,7 +52,7 @@ Paperless-ngx is a document management system that transforms your physical docu * Example for french `sudo apt-get install tesseract-ocr-fra` * Example for german `sudo apt-get install tesseract-ocr-deu` * Modify config to add new languages - * Open config-panel: https://my-domain.tld/yunohost/admin/#/apps/$app_id/config-panel + * Open the configuration tab under: https://my-domain.tld/yunohost/admin/#/apps/$app_id/ * You can combine multiple languages like this: * One language: eng * Two languages: eng+fra 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/conf/paperless.conf.example b/conf/paperless.conf.example index 4a0de65..4ef0338 100644 --- a/conf/paperless.conf.example +++ b/conf/paperless.conf.example @@ -25,7 +25,7 @@ PAPERLESS_DATA_DIR=__DATADIR__/data PAPERLESS_MEDIA_ROOT=__DATADIR__/media #PAPERLESS_STATICDIR=../static #PAPERLESS_FILENAME_FORMAT= -PAPERLESS_NLTK_DIR=__FINALPATH_/nltk_data +PAPERLESS_NLTK_DIR=__FINALPATH__/nltk_data # Security and hosting diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 45eb9f5..dc68c02 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -7,7 +7,7 @@ * Example for french `sudo apt-get install tesseract-ocr-fra` * Example for german `sudo apt-get install tesseract-ocr-deu` * Modify config to add new languages - * Open config-panel: https://my-domain.tld/yunohost/admin/#/apps/$app_id/config-panel + * Open the configuration tab under: https://my-domain.tld/yunohost/admin/#/apps/$app_id/ * You can combine multiple languages like this: * One language: eng * Two languages: eng+fra 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", diff --git a/scripts/install b/scripts/install index 604d0b8..6d1be66 100755 --- a/scripts/install +++ b/scripts/install @@ -156,6 +156,12 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$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/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/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 7db5401..979ea87 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,6 +147,12 @@ ynh_add_config --template="paperless.conf.example" --destination="$final_path/pa chmod 400 "$final_path/paperless.conf" chown $app:$app "$final_path/paperless.conf" +#================================================= +# REMOVE TEMP DIRECTORY +#================================================= +ynh_script_progression --message="Cleanup temp directory..." --weight=1 +ynh_secure_remove --file="/tmp/$app" + #================================================= # SETUP THE DATABASE #=================================================