From df7adbc6d3208544c1f65a337239ddabd4f90640 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 20:26:46 +0200 Subject: [PATCH 01/16] Update manifest.toml candidate release 1.3-RC10 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index b24be98..7a4daa8 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Paheko" description.en = "Software to manage association" description.fr = "Logiciel libre de gestion d'association" -version = "1.3.0~ynh6" +version = "1.3.0~ynh7" maintainers = ["rodinux"] @@ -42,8 +42,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://fossil.kd2.org/paheko/uv/paheko-1.3.0-rc9.tar.gz" - sha256 = "575dd8c632a4bc684d450b5cb2491a459506b3b34311d963ccedebe120e94158" + url = "https://fossil.kd2.org/paheko/uv/paheko-1.3.0-rc10.tar.gz" + sha256 = "1cfe7d0c97276e3fc846bedc9e2c913bb61ab82f67775f1e41a4c52e4ad2d7b6" [resources.system_user] From a1765a38e2f6f7379f6f512e01aa228d1a2e727d Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 12 Sep 2023 18:26:49 +0000 Subject: [PATCH 02/16] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3420e4f..3354cb4 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Paheko (we chose the name Paheko, a word from the Māori language meaning "to co It is the tool of choice for managing an association, a sports club, an NGO, etc. It is designed to meet the needs of a small to medium-sized structure: management of members, accounting, website, note-taking in meetings, archiving and sharing of the association's operating documents, discussion between members, etc. etc.. -**Shipped version:** 1.3.0~ynh6 +**Shipped version:** 1.3.0~ynh7 **Demo:** https://paheko.cloud/essai/ diff --git a/README_fr.md b/README_fr.md index 1cbd6c5..75cdedb 100644 --- a/README_fr.md +++ b/README_fr.md @@ -30,7 +30,7 @@ Paheko (Nous avons choisi le nom Paheko, un mot de la langue Māori qui signifie ![Logo Paheko](https://master.garradin.eu/garradin-devient-paheko/logo_v3_small-fs8.png) -**Version incluse :** 1.3.0~ynh6 +**Version incluse :** 1.3.0~ynh7 **Démo :** https://paheko.cloud/essai/ From f64aa660f7f5dc162640098b1a5b04f70a1f30e4 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 20:37:24 +0200 Subject: [PATCH 03/16] Update upgrade add --full-replace=1 --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 94a536b..63bcb70 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite squelettes/ data/ skel-dist/ config.local.user.php" + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite squelettes data skel-dist config.local.user.php" --full_replace=1 fi chmod -R o-rwx "$install_dir" @@ -71,7 +71,7 @@ if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; th chmod 750 "$install_dir/config.local.user.php" ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php" fi -if ynh_compare_current_package_version --comparison le --version 1.2.12~ynh1; then +if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh2; then ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php" fi ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" From fb621f6dc44aaeede4fad7e3a59cf822ab1d13b1 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 21:26:41 +0200 Subject: [PATCH 04/16] Update upgrade try fix keep database --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 63bcb70..9544edd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite squelettes data skel-dist config.local.user.php" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="config.local.user.php data" --full_replace=1 fi chmod -R o-rwx "$install_dir" @@ -71,7 +71,7 @@ if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; th chmod 750 "$install_dir/config.local.user.php" ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php" fi -if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh2; then +if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh3; then ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php" fi ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" @@ -102,7 +102,5 @@ sleep 5 #================================================= # END OF SCRIPT #================================================= -# remove directory duplicated -ynh_secure_remove --file="$install_dir/data/data" ynh_script_progression --message="Upgrade of $app completed" --last From 6a28cc87f6670dd0b2ed142feff7151cefda0672 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 21:50:09 +0200 Subject: [PATCH 05/16] Update upgrade try fix keep database and remove folder duplicated --- scripts/upgrade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 9544edd..e3fe4d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,10 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config. ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" # NOTE: Don't overwrite config.local.user.php +# Move the database on folder data/data created and remove the folder +mv $install_dir/data/data/association.sqlite $install_dir/data/ +ynh_secure_remove --file=$install_dir/data/data + # Permissions on files and directories chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -94,6 +98,10 @@ chmod 660 "$install_dir/config.local.user.php" #================================================= ynh_script_progression --message="Finalise upgrade" --weight=1 +# Move the database on folder data/data created and remove the folder +mv $install_dir/data/data/association.sqlite $install_dir/data/ +ynh_secure_remove --file=$install_dir/data/data + ynh_local_curl "/admin/index.php" sleep 5 ynh_local_curl "/index.php" From d5b51248c068e91ae2161452d78c84d52f745e5a Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 21:56:42 +0200 Subject: [PATCH 06/16] Update upgrade try fix keep association.sqlite --- scripts/upgrade | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e3fe4d8..5818d7a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="config.local.user.php data" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite config.local.user.php data" fi chmod -R o-rwx "$install_dir" @@ -98,15 +98,13 @@ chmod 660 "$install_dir/config.local.user.php" #================================================= ynh_script_progression --message="Finalise upgrade" --weight=1 -# Move the database on folder data/data created and remove the folder -mv $install_dir/data/data/association.sqlite $install_dir/data/ -ynh_secure_remove --file=$install_dir/data/data - ynh_local_curl "/admin/index.php" sleep 5 ynh_local_curl "/index.php" sleep 5 +# Move the database on folder data/data created and remove the folder +ynh_secure_remove --file=$install_dir/data/data #================================================= # END OF SCRIPT #================================================= From fb8879fed3b400c77c889fefcc597f856ce64607 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 23:08:07 +0200 Subject: [PATCH 07/16] Update upgrade fix keep the DB on a temporaly file --- scripts/upgrade | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5818d7a..5fec1a8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,6 +29,12 @@ if [[ -z "${secret_key:-}" ]]; then ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key fi +#================================================= +# BACKUP SQLITE DATABASE +#================================================= +ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 +cp -a $install_dir/data/association.sqlite /tmp/ + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -38,7 +44,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite config.local.user.php data" + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data skel-dist config.local.user.php" --full_replace=1 fi chmod -R o-rwx "$install_dir" @@ -74,13 +80,13 @@ fi if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh3; then ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php" fi + +# NOTE: Don't overwrite config.local.user.php ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" -# NOTE: Don't overwrite config.local.user.php -# Move the database on folder data/data created and remove the folder -mv $install_dir/data/data/association.sqlite $install_dir/data/ -ynh_secure_remove --file=$install_dir/data/data +# Restore the sqlite DB +mv /tmp/association.sqlite $install_dir/data # Permissions on files and directories chmod -R o-rwx "$install_dir" @@ -103,10 +109,10 @@ sleep 5 ynh_local_curl "/index.php" sleep 5 -# Move the database on folder data/data created and remove the folder -ynh_secure_remove --file=$install_dir/data/data #================================================= # END OF SCRIPT #================================================= +# remove directory duplicated +ynh_secure_remove --file="$install_dir/data/data" ynh_script_progression --message="Upgrade of $app completed" --last From 66629f8b732edabc41bf385ce3b86deda35b1a5b Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 12 Sep 2023 23:09:05 +0200 Subject: [PATCH 08/16] Update manifest.toml Fix upgrade with DB on a temporaly file --- manifest.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.toml b/manifest.toml index 7a4daa8..8e88f00 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Paheko" description.en = "Software to manage association" description.fr = "Logiciel libre de gestion d'association" -version = "1.3.0~ynh7" +version = "1.3.0~ynh8" maintainers = ["rodinux"] From 3e0711191a792444f1accc2bf02f5f0ba227db3e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 12 Sep 2023 21:09:09 +0000 Subject: [PATCH 09/16] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3354cb4..787c9c2 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Paheko (we chose the name Paheko, a word from the Māori language meaning "to co It is the tool of choice for managing an association, a sports club, an NGO, etc. It is designed to meet the needs of a small to medium-sized structure: management of members, accounting, website, note-taking in meetings, archiving and sharing of the association's operating documents, discussion between members, etc. etc.. -**Shipped version:** 1.3.0~ynh7 +**Shipped version:** 1.3.0~ynh8 **Demo:** https://paheko.cloud/essai/ diff --git a/README_fr.md b/README_fr.md index 75cdedb..f32bed2 100644 --- a/README_fr.md +++ b/README_fr.md @@ -30,7 +30,7 @@ Paheko (Nous avons choisi le nom Paheko, un mot de la langue Māori qui signifie ![Logo Paheko](https://master.garradin.eu/garradin-devient-paheko/logo_v3_small-fs8.png) -**Version incluse :** 1.3.0~ynh7 +**Version incluse :** 1.3.0~ynh8 **Démo :** https://paheko.cloud/essai/ From dbcf117afbc374eacf1446e66458d586482f0ad2 Mon Sep 17 00:00:00 2001 From: rodinux Date: Wed, 13 Sep 2023 20:09:24 +0200 Subject: [PATCH 10/16] add conditions for pass tests if upgrade from none initialyzed app --- scripts/upgrade | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5fec1a8..5182d42 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,7 +33,10 @@ fi # BACKUP SQLITE DATABASE #================================================= ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 + +if [ -f "$install_dir/data/association.sqlite" ];then cp -a $install_dir/data/association.sqlite /tmp/ +fi #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -86,7 +89,9 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config. ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" # Restore the sqlite DB -mv /tmp/association.sqlite $install_dir/data +if [ -f "/tmp/association.sqlite" ];then +mv /tmp/association.sqlite $install_dir/data +fi # Permissions on files and directories chmod -R o-rwx "$install_dir" From 77de3d94a307357bfd316b28622e9a6eabde5cb4 Mon Sep 17 00:00:00 2001 From: rodinux Date: Wed, 13 Sep 2023 21:35:19 +0200 Subject: [PATCH 11/16] folder no more in same place --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5182d42..67df8e5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,7 +47,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data skel-dist config.local.user.php" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data config.local.user.php" --full_replace=1 fi chmod -R o-rwx "$install_dir" From 10b68c1ccbe51d51f571babc5dbfa4482088ee62 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 14 Sep 2023 00:47:15 +0200 Subject: [PATCH 12/16] Update doc/ADMIN_fr.md --- doc/ADMIN_fr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index 91f7512..e6e0e37 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -1,4 +1,4 @@ ## Configurations personnelles -Vous pouvez si vous le souhaitez ajouter des configurations personnelles en éditant le fichier `/var/www/paheko/config.local.user.php`. -Pour voir les possibilités vous pouvez lire auparavant le fichier `/var/www/paheko/config.dist.php`. +Vous pouvez si vous le souhaitez ajouter des configurations personnelles en éditant le fichier `__INSTALL_DIR__/config.local.user.php`. +Pour voir les possibilités vous pouvez lire auparavant le fichier `__INSTALL_DIR__/config.dist.php`. From 800941d41101e1ffca1de62f928947eef593fc8a Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sat, 16 Sep 2023 09:11:56 +0200 Subject: [PATCH 13/16] correct process upgrade --- scripts/upgrade | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 67df8e5..e3407f6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,9 +34,8 @@ fi #================================================= ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 -if [ -f "$install_dir/data/association.sqlite" ];then -cp -a $install_dir/data/association.sqlite /tmp/ -fi +# keep a data directory backup +cp -R $install_dir/data /tmp/data #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -88,10 +87,8 @@ fi ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" -# Restore the sqlite DB -if [ -f "/tmp/association.sqlite" ];then -mv /tmp/association.sqlite $install_dir/data -fi +# Sync the data directory backup +rsync /tmp/data/ $install_dir/data/ # Permissions on files and directories chmod -R o-rwx "$install_dir" @@ -117,7 +114,7 @@ sleep 5 #================================================= # END OF SCRIPT #================================================= -# remove directory duplicated -ynh_secure_remove --file="$install_dir/data/data" +# remove data directory backup +ynh_secure_remove --file="/tmp/data" ynh_script_progression --message="Upgrade of $app completed" --last From cbd076a82403fa1157254259e7924a64ac857ff2 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Sat, 16 Sep 2023 09:36:55 +0200 Subject: [PATCH 14/16] clean options backup data --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e3407f6..4985232 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,7 +35,7 @@ fi ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 # keep a data directory backup -cp -R $install_dir/data /tmp/data +cp -a $install_dir/data /tmp/data #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -88,7 +88,7 @@ ynh_add_config --template="config.local.php" --destination="$install_dir/config. ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" # Sync the data directory backup -rsync /tmp/data/ $install_dir/data/ +rsync -R /tmp/data/ $install_dir/data/ # Permissions on files and directories chmod -R o-rwx "$install_dir" From 218264de436da6c496daf6119bf57ae430880734 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 17 Sep 2023 22:18:40 +0200 Subject: [PATCH 15/16] Update doc/PRE_UPGRADE.d/1.3.0.md --- doc/PRE_UPGRADE.d/1.3.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/PRE_UPGRADE.d/1.3.0.md b/doc/PRE_UPGRADE.d/1.3.0.md index 1225343..62f7f4e 100644 --- a/doc/PRE_UPGRADE.d/1.3.0.md +++ b/doc/PRE_UPGRADE.d/1.3.0.md @@ -1 +1 @@ -We should encourage people to have a look at the Changelog: https://fossil.kd2.org/paheko/wiki?name=Changelog/1.3 when upgrading to this version because there are major changes. If you have installed some plugins, not all will be compatibles. +We encourage you to have a look at the Changelog: https://fossil.kd2.org/paheko/wiki?name=Changelog/1.3 when upgrading to this version because there are major changes. If you have installed some plugins, not all will be compatibles. From c00f1da8c0cc2e408446702159a5d01fb98a66ac Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 18 Sep 2023 14:48:00 +0200 Subject: [PATCH 16/16] order syntax --- scripts/upgrade | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4985232..614bab4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -30,11 +30,11 @@ if [[ -z "${secret_key:-}" ]]; then fi #================================================= -# BACKUP SQLITE DATABASE +# BACKUP SQLITE DATABASE AND DATAS #================================================= ynh_script_progression --message="Backup of the DB in temporary file...." --weight=5 -# keep a data directory backup +# copy data directory backup cp -a $install_dir/data /tmp/data #================================================= @@ -46,7 +46,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data config.local.user.php" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data config.local.user.php" --full_replace=1 fi chmod -R o-rwx "$install_dir" @@ -79,17 +79,24 @@ if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; th chmod 750 "$install_dir/config.local.user.php" ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php" fi -if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh3; then - ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php" -fi # NOTE: Don't overwrite config.local.user.php ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php" -# Sync the data directory backup +#================================================= +# RESTORE BACKUP SQLITE DATABASE AND DATAS +#================================================= +ynh_script_progression --message="Restore datas..." --weight=5 + +# Sync data directory backup rsync -R /tmp/data/ $install_dir/data/ +#================================================= +# FIX PERMISSIONS +#================================================= +ynh_script_progression --message="Fix permissions..." --weight=2 + # Permissions on files and directories chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -111,10 +118,11 @@ sleep 5 ynh_local_curl "/index.php" sleep 5 +# remove directory duplicated +ynh_secure_remove --file="/tmp/data" + #================================================= # END OF SCRIPT #================================================= -# remove data directory backup -ynh_secure_remove --file="/tmp/data" ynh_script_progression --message="Upgrade of $app completed" --last