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,8 +139,13 @@ then
|
||||||
sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release
|
sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release
|
||||||
popd
|
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
|
# Install bitwarden_rs
|
||||||
cp -a "$final_path"/build/target/release/. "$final_path"/live/.
|
cp -af "$final_path"/build/target/release/. "$final_path"/live/.
|
||||||
|
|
||||||
# Remove build files and rustup
|
# Remove build files and rustup
|
||||||
ynh_secure_remove --file="$final_path/build"
|
ynh_secure_remove --file="$final_path/build"
|
||||||
|
|
Loading…
Add table
Reference in a new issue