1
0
Fork 0
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:
yalh76 2020-04-27 12:28:40 +02:00 committed by GitHub
commit 330dd28948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"