mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
Merge pull request #69 from curious-jeremy/fix-do_cleanup_on_upgrade
Remove old generated files when upgrading
This commit is contained in:
commit
330dd28948
1 changed files with 8 additions and 3 deletions
|
@ -139,10 +139,15 @@ then
|
|||
sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release
|
||||
popd
|
||||
|
||||
# Install bitwarden_rs
|
||||
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
||||
# Remove old generated files before copying the new ones
|
||||
ynh_secure_remove --file="$final_path/live/build"
|
||||
ynh_secure_remove --file="$final_path/live/deps"
|
||||
ynh_secure_remove --file="$final_path/live/.fingerprint"
|
||||
|
||||
# Remove build files and rustup
|
||||
# Install bitwarden_rs
|
||||
cp -af "$final_path"/build/target/release/. "$final_path"/live/.
|
||||
|
||||
# Remove build files and rustup
|
||||
ynh_secure_remove --file="$final_path/build"
|
||||
ynh_secure_remove --file="$final_path/.cargo"
|
||||
ynh_secure_remove --file="$final_path/.rustup"
|
||||
|
|
Loading…
Add table
Reference in a new issue