1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lufi_ynh.git synced 2024-09-03 19:36:28 +02:00

Merge pull request #67 from YunoHost-Apps/testing

Testing
This commit is contained in:
Alexandre Aubin 2021-11-20 22:41:42 +01:00 committed by GitHub
commit 86ab95dcc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 33 deletions

View file

@ -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 Self hosting files and sharing anonymous application
**Shipped version:** 0.05.13~ynh3 **Shipped version:** 0.05.16~ynh1
**Demo:** https://demo.lufi.io/ **Demo:** https://demo.lufi.io/
@ -33,8 +33,6 @@ Self hosting files and sharing anonymous application
## Documentation and resources ## 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 * Official admin documentation: https://framagit.org/luc/lufi/wikis/home
* Upstream app code repository: https://framagit.org/fiat-tux/hat-softwares/lufi * Upstream app code repository: https://framagit.org/fiat-tux/hat-softwares/lufi
* YunoHost documentation for this app: https://yunohost.org/app_lufi * YunoHost documentation for this app: https://yunohost.org/app_lufi

View file

@ -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 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/ **Démo :** https://demo.lufi.io/
@ -29,8 +29,6 @@ Application d'hébergement et de partage de fichiers anonyme
## Documentations et ressources ## 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 * 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 * 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 * Documentation YunoHost pour cette app : https://yunohost.org/app_lufi

View file

@ -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_URL=https://framagit.org/fiat-tux/hat-softwares/lufi/-/archive/0.05.16/lufi-0.05.16.tar.gz
SOURCE_SUM=c43c19c9901bb4b0d103980a61c3b1d9458a54f23b0b1c2b42c9706073df4d5a SOURCE_SUM=bd8146e6062fb180897544c27f862b5de56840e3fe7cde41824538f1de55a2b6
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -6,14 +6,12 @@
"en": "Self hosting files and sharing anonymous application", "en": "Self hosting files and sharing anonymous application",
"fr": "Application d'hébergement et de partage de fichiers anonyme" "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", "url": "https://git.framasoft.org/luc/lufi",
"upstream": { "upstream": {
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"website": "https://example.com",
"demo": "https://demo.lufi.io/", "demo": "https://demo.lufi.io/",
"admindoc": "https://framagit.org/luc/lufi/wikis/home", "admindoc": "https://framagit.org/luc/lufi/wikis/home",
"userdoc": "https://yunohost.org/en/app_lufi",
"code": "https://framagit.org/fiat-tux/hat-softwares/lufi" "code": "https://framagit.org/fiat-tux/hat-softwares/lufi"
}, },
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
@ -22,7 +20,7 @@
"email": "win10@tutanota.com, cyp@rouquin.me" "email": "win10@tutanota.com, cyp@rouquin.me"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.0" "yunohost": ">= 4.2.3"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [
@ -32,8 +30,7 @@
"install": [ "install": [
{ {
"name": "domain", "name": "domain",
"type": "domain", "type": "domain"
"example": "domain.org"
}, },
{ {
"name": "path", "name": "path",

View file

@ -39,8 +39,6 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." 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 \ test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path " || ynh_die --message="There is already a directory: $final_path "

View file

@ -30,10 +30,24 @@ max_file_size=$(ynh_app_setting_get --app=$app --key=max_file_size)
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
ynh_script_progression --message="Checking version..."
upgrade_type=$(ynh_check_app_version_changed) 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 # ENSURE DOWNWARD COMPATIBILITY
#================================================= #=================================================
@ -63,21 +77,6 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public ynh_app_setting_delete --app=$app --key=is_public
fi 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 # STANDARD UPGRADE STEPS
#================================================= #=================================================