1
0
Fork 0
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:
Jeremy Vagnet 2020-04-23 16:34:45 +02:00
parent c67bb939ae
commit 939193edab

View file

@ -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/.