1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Cleanup and make sure the build directory is clean upon upgrade

This commit is contained in:
tituspijean 2023-07-09 14:21:41 +02:00
parent 9dc12a12b3
commit 408ce6ea70
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -60,7 +60,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=3 ynh_script_progression --message="Upgrading source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src # 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 fi
chmod 750 "$install_dir" 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 CGO_ENABLED=1 go build -trimpath -v -o "$install_dir/bin/" ./cmd/generate-keys > /dev/null 2>&1
popd popd
#REMOVEME? ynh_secure_remove --file="$install_dir/build" ynh_secure_remove --file="$install_dir/build"
ynh_remove_go ynh_remove_go
fi fi