From 408ce6ea704dafedbb607828366435598f98cf6f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 9 Jul 2023 14:21:41 +0200 Subject: [PATCH] Cleanup and make sure the build directory is clean upon upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1c97beb..5fa4417 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,7 +60,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=3 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir/build" --keep="dendrite.yaml" + ynh_setup_source --dest_dir="$install_dir/build" --keep="dendrite.yaml" --full_replace fi chmod 750 "$install_dir" @@ -103,7 +103,7 @@ then CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys > /dev/null 2>&1 popd -#REMOVEME? ynh_secure_remove --file="$install_dir/build" + ynh_secure_remove --file="$install_dir/build" ynh_remove_go fi