diff --git a/README.md b/README.md index ab9a3cb..bb83230 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Self hosting files and sharing anonymous application -**Shipped version:** 0.05.13~ynh3 +**Shipped version:** 0.05.16~ynh1 **Demo:** https://demo.lufi.io/ @@ -33,8 +33,6 @@ Self hosting files and sharing anonymous application ## Documentation and resources -* Official app website: https://example.com -* Official user documentation: https://yunohost.org/en/app_lufi * Official admin documentation: https://framagit.org/luc/lufi/wikis/home * Upstream app code repository: https://framagit.org/fiat-tux/hat-softwares/lufi * YunoHost documentation for this app: https://yunohost.org/app_lufi diff --git a/README_fr.md b/README_fr.md index 6830132..236fe6f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Application d'hébergement et de partage de fichiers anonyme -**Version incluse :** 0.05.13~ynh3 +**Version incluse :** 0.05.16~ynh1 **Démo :** https://demo.lufi.io/ @@ -29,8 +29,6 @@ Application d'hébergement et de partage de fichiers anonyme ## Documentations et ressources -* Site officiel de l'app : https://example.com -* Documentation officielle utilisateur : https://yunohost.org/en/app_lufi * Documentation officielle de l'admin : https://framagit.org/luc/lufi/wikis/home * Dépôt de code officiel de l'app : https://framagit.org/fiat-tux/hat-softwares/lufi * Documentation YunoHost pour cette app : https://yunohost.org/app_lufi diff --git a/conf/app.src b/conf/app.src index f6e8c70..795afb9 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,5 @@ -SOURCE_URL=https://framagit.org/fiat-tux/hat-softwares/lufi/-/archive/0.05.13/lufi-0.05.13.tar.gz -SOURCE_SUM=c43c19c9901bb4b0d103980a61c3b1d9458a54f23b0b1c2b42c9706073df4d5a +SOURCE_URL=https://framagit.org/fiat-tux/hat-softwares/lufi/-/archive/0.05.16/lufi-0.05.16.tar.gz +SOURCE_SUM=bd8146e6062fb180897544c27f862b5de56840e3fe7cde41824538f1de55a2b6 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/manifest.json b/manifest.json index 01406dd..938f162 100644 --- a/manifest.json +++ b/manifest.json @@ -6,14 +6,12 @@ "en": "Self hosting files and sharing anonymous application", "fr": "Application d'hébergement et de partage de fichiers anonyme" }, - "version": "0.05.13~ynh3", + "version": "0.05.16~ynh1", "url": "https://git.framasoft.org/luc/lufi", "upstream": { "license": "AGPL-3.0-or-later", - "website": "https://example.com", "demo": "https://demo.lufi.io/", "admindoc": "https://framagit.org/luc/lufi/wikis/home", - "userdoc": "https://yunohost.org/en/app_lufi", "code": "https://framagit.org/fiat-tux/hat-softwares/lufi" }, "license": "AGPL-3.0-or-later", @@ -22,7 +20,7 @@ "email": "win10@tutanota.com, cyp@rouquin.me" }, "requirements": { - "yunohost": ">= 4.2.0" + "yunohost": ">= 4.2.3" }, "multi_instance": true, "services": [ @@ -32,8 +30,7 @@ "install": [ { "name": "domain", - "type": "domain", - "example": "domain.org" + "type": "domain" }, { "name": "path", diff --git a/scripts/restore b/scripts/restore index 73c8b8a..c9bb718 100644 --- a/scripts/restore +++ b/scripts/restore @@ -39,8 +39,6 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) #================================================= ynh_script_progression --message="Validating restoration parameters..." -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" test ! -d $final_path \ || ynh_die --message="There is already a directory: $final_path " diff --git a/scripts/upgrade b/scripts/upgrade index 764a299..0e94262 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -30,10 +30,24 @@ max_file_size=$(ynh_app_setting_get --app=$app --key=max_file_size) #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP +#================================================= +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." + +# Backup the current version of the app +ynh_backup_before_upgrade +ynh_clean_setup () { + ynh_clean_check_starting + # restore it if the upgrade fails + ynh_restore_upgradebackup +} +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -63,21 +77,6 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - ynh_clean_check_starting - # restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # STANDARD UPGRADE STEPS #=================================================