Skip to content

Commit

Permalink
Merge pull request #262 from YunoHost-Apps/upgrade_full_replace
Browse files Browse the repository at this point in the history
[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1
  • Loading branch information
Thovi98 authored Mar 11, 2024
2 parents c778ba5 + 32809b5 commit 15801fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 2 additions & 6 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@ 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"
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

#=================================================
Expand Down

0 comments on commit 15801fc

Please sign in to comment.