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

Call cargo with its full path and home dir

This commit is contained in:
tituspijean 2022-07-03 15:50:54 +02:00
parent a95c3c38ca
commit 69ead32623
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 4 additions and 4 deletions

View file

@ -129,7 +129,7 @@ export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin
# Compile vaultwarden # Compile vaultwarden
pushd "$final_path"/build pushd "$final_path"/build
ynh_exec_warn_less ynh_exec_as "$app" env PATH="$PATH" cargo build --features sqlite --release ynh_exec_warn_less ynh_exec_as "$app" env PATH="$PATH" CARGO_HOME="$final_path/.cargo" $final_path/.cargo/bin/cargo build --features sqlite --release
popd popd
# Install vaultwarden # Install vaultwarden

View file

@ -196,7 +196,7 @@ then
# Compile vaultwarden # Compile vaultwarden
pushd "$final_path"/build pushd "$final_path"/build
ynh_exec_warn_less ynh_exec_as "$app" env PATH="$PATH" cargo build --features sqlite --release ynh_exec_warn_less ynh_exec_as "$app" env PATH="$PATH" CARGO_HOME="$final_path/.cargo" $final_path/.cargo/bin/cargo build --features sqlite --release
popd popd
# Remove old generated files before copying the new ones # Remove old generated files before copying the new ones