From 317d78ad2b0d82340a89922d4d1fee133bf91919 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 3 Feb 2021 11:39:43 +0100 Subject: [PATCH] Small fixes --- README.md | 4 ++-- README_fr.md | 4 ++-- manifest.json | 8 ++++++++ scripts/upgrade | 7 +++++++ 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9cc0d9c..8f7bad3 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview Haste is an open-source pastebin software written in node.js, which is easily installable in any network. YunoHost Project uses Haste as pastebin for log sharing: [paste.yunohost.org](https://paste.yunohost.org/) -**Shipped version:** 0.1.0 +**Shipped version:** 0.1.0 (7.10.2020) ## Screenshots @@ -23,7 +23,7 @@ Haste is an open-source pastebin software written in node.js, which is easily in ## Configuration -How to configure this app: a plain file with SSH. + * How to configure this app: a plain file with SSH. ## Documentation diff --git a/README_fr.md b/README_fr.md index a2f9108..96398ad 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, consultez [le guide](https://yunohost.org/#/install ## Vue d'ensemble Haste est un logiciel pastebin open-source écrit en node.js, facilement installable sur n'importe quel réseau. Le projet YunoHost utilise Haste comme pastebin pour le partage de log : [paste.yunohost.org](https://paste.yunohost.org/) -**Version incluse :** 0.1.0 +**Version incluse :** 0.1.0 (7.10.2020) ## Captures d'écran @@ -23,7 +23,7 @@ Haste est un logiciel pastebin open-source écrit en node.js, facilement install ## Configuration -Comment configurer cette application: un fichier brut en SSH. + * Comment configurer cette application: un fichier brut en SSH. ## Documentation diff --git a/manifest.json b/manifest.json index bee1aca..a326386 100644 --- a/manifest.json +++ b/manifest.json @@ -13,6 +13,10 @@ "name": "eric_G", "email": "" }, + "previous_maintainers": [{ + "name": "mbugeia", + "email": "maxime.bugeia@gmail.com" + }], "requirements": { "yunohost": ">= 4.0.0" }, @@ -29,6 +33,10 @@ "en": "Choose a domain name for Haste", "fr": "Choisissez un nom de domaine pour Haste" }, + "help": { + "en": "Haste can only be installed in a root domain or subdomain", + "fr": "Haste ne peut être installé que dans un domaine racine ou un sous-domaine " + }, "example": "paste.example.com" }, { diff --git a/scripts/upgrade b/scripts/upgrade index aa85cb6..01df40f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,6 +47,13 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi +# Cleaning legacy permissions +if ynh_legacy_permissions_exists; then + ynh_legacy_permissions_delete_all + + ynh_app_setting_delete --app=$app --key=is_public +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================