From b7158febe794766b62ebc5c462aea2538cdaea33 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 5 Jan 2019 01:31:21 +0100 Subject: [PATCH] Change Rustup installation path --- scripts/install | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d0f521f..2d99c46 100755 --- a/scripts/install +++ b/scripts/install @@ -158,9 +158,7 @@ chown -R $app: $final_path # App settings -CARGO_HOME=$final_path -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 ) +( 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' ) export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin:/root/.cargo/env:$HOME/.cargo/bin" export FEATURES=postgres ( cd $final_path/$app && sudo -u "$app" cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' )