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:
parent
9dc12a12b3
commit
408ce6ea70
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue