1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vaultwarden_ynh.git synced 2024-09-03 18:26:31 +02:00

remove not needed files

This commit is contained in:
yalh76 2021-02-21 06:38:40 +01:00
parent d157b636f2
commit 68d4c490e5
2 changed files with 9 additions and 3 deletions

View file

@ -128,8 +128,10 @@ pushd "$final_path"/build
sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release sudo -u "$app" env PATH="$PATH" cargo build --features sqlite --release
popd popd
read -p "key"
# Install bitwarden_rs # Install bitwarden_rs
cp -a "$final_path"/build/target/release/. "$final_path"/live/. cp -a "$final_path"/build/target/release/bitwarden_rs "$final_path"/live/bitwarden_rs
# Remove build files and rustup # Remove build files and rustup
ynh_secure_remove --file="$final_path/build" ynh_secure_remove --file="$final_path/build"

View file

@ -140,12 +140,16 @@ then
popd popd
# Remove old generated files before copying the new ones # Remove old generated files before copying the new ones
ynh_secure_remove --file="$final_path/live/.fingerprint"
ynh_secure_remove --file="$final_path/live/build" ynh_secure_remove --file="$final_path/live/build"
ynh_secure_remove --file="$final_path/live/deps" ynh_secure_remove --file="$final_path/live/deps"
ynh_secure_remove --file="$final_path/live/.fingerprint" ynh_secure_remove --file="$final_path/live/examples"
ynh_secure_remove --file="$final_path/live/incremental"
ynh_secure_remove --file="$final_path/live/.cargo-lock"
ynh_secure_remove --file="$final_path/live/bitwarden_rs.d"
# Install bitwarden_rs # Install bitwarden_rs
cp -af "$final_path"/build/target/release/. "$final_path"/live/. cp -af "$final_path"/build/target/release/bitwarden_rs "$final_path"/live/bitwarden_rs
# Remove build files and rustup # Remove build files and rustup
ynh_secure_remove --file="$final_path/build" ynh_secure_remove --file="$final_path/build"