From 694269f9cb3b51cca738109548e95ccd9e9e40be Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 5 Jan 2019 02:32:37 +0100 Subject: [PATCH] Update PATH --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index de0761d..f330e3c 100755 --- a/scripts/install +++ b/scripts/install @@ -159,8 +159,8 @@ chown -R $app: $final_path # App settings ( cd $final_path && sudo -u "$app" RUSTUP_HOME=$final_path/.rustup CARGO_HOME=$final_path/.cargo bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=nightly' ) -PATH="$PATH:/var/www/$app/.cargo/bin:/usr/local/sbin" - export PATH="$PATH" +PATH="$PATH:/var/www/$app/.cargo/bin" + export PATH="$PATH:/var/www/$app/.cargo/bin:/usr/local/sbin" 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 && diesel migration run )