mirror of
https://github.com/YunoHost-Apps/vaultwarden_ynh.git
synced 2024-09-03 18:26:31 +02:00
Remove old generated files before copying the new ones when upgrading
This commit is contained in:
parent
c67bb939ae
commit
939193edab
1 changed files with 5 additions and 0 deletions
|
@ -139,6 +139,11 @@ then
|
|||
sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release
|
||||
popd
|
||||
|
||||
# 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"
|
||||
|
||||
# Install bitwarden_rs
|
||||
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue