From c978a708b42c0d7afea42c1b8af49f7937cb61d1 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:03:16 +0100 Subject: [PATCH 1/4] disable auto update assets --- manifest.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 6ae2931..210e61b 100644 --- a/manifest.toml +++ b/manifest.toml @@ -61,8 +61,8 @@ ram.runtime = "50M" format = "zip" autoupdate.strategy = "latest_gitlab_release" - autoupdate.asset.api = "api.*" - autoupdate.asset.front = "front.*" + # autoupdate.asset.api = "api.*" + # autoupdate.asset.front = "front.*" [resources.ports] From 958401bca40f8f21e348fbfa061327e0798f5531 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 8 Feb 2024 21:47:36 +0100 Subject: [PATCH 2/4] Remove autoupdate for now --- manifest.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/manifest.toml b/manifest.toml index 210e61b..3ee4dee 100644 --- a/manifest.toml +++ b/manifest.toml @@ -60,10 +60,6 @@ ram.runtime = "50M" extract = true format = "zip" - autoupdate.strategy = "latest_gitlab_release" - # autoupdate.asset.api = "api.*" - # autoupdate.asset.front = "front.*" - [resources.ports] [resources.system_user] From 890fa0c58d1ac3798d069aaa15b2e6c94296d9d4 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Mon, 11 Mar 2024 16:04:45 +0100 Subject: [PATCH 3/4] [autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1 --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2f78ea1..64fca68 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,8 +39,8 @@ then ynh_secure_remove --file="$install_dir/front" # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir/api" --source_id="api" - ynh_setup_source --dest_dir="$install_dir/front" --source_id="front" + ynh_setup_source --dest_dir="$install_dir/api" --source_id="api" --full_replace=1 + ynh_setup_source --dest_dir="$install_dir/front" --source_id="front" --full_replace=1 fi #================================================= From 32809b5584f04abfa81c1b60bdf18d592efbe9dd Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:22:16 +0100 Subject: [PATCH 4/4] Remove old full_replace alternative --- scripts/upgrade | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 64fca68..65a462f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,10 +33,6 @@ ynh_systemd_action --action="stop" --service_name="${app}-worker" --log_path="sy if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=1 - - # Remove the old files - ynh_secure_remove --file="$install_dir/api" - ynh_secure_remove --file="$install_dir/front" # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir/api" --source_id="api" --full_replace=1