1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Change Rustup installation path

This commit is contained in:
yalh76 2019-01-05 01:31:21 +01:00 committed by GitHub
parent ed22681299
commit b7158febe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,9 +158,7 @@ chown -R $app: $final_path
# App settings # App settings
CARGO_HOME=$final_path ( cd $final_path && sudo -u "$app" RUSTUP_HOME=$final_path CARGO_HOME=$final_path bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=nightly' )
RUSTUP_HOME=$final_path
( cd $final_path && sudo -u "$app" curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=nightly )
export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin:/root/.cargo/env:$HOME/.cargo/bin" export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin:/root/.cargo/env:$HOME/.cargo/bin"
export FEATURES=postgres export FEATURES=postgres
( cd $final_path/$app && sudo -u "$app" cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' ) ( cd $final_path/$app && sudo -u "$app" cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' )