From 66b536ca73b79c7c95579b1cdd5c7be6073041dc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 4 Jan 2019 00:18:58 +0100 Subject: [PATCH] Update PATH --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 0116ff9..bc3b13e 100755 --- a/scripts/install +++ b/scripts/install @@ -159,9 +159,9 @@ chown -R $app: $final_path # App settings ( cd $final_path && sudo -u "$app" curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=nightly ) -sudo -u "$app" source $HOME/.cargo/env -sudo -u "$app" export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin" -sudo -u "$app" export FEATURES=postgres +( sudo -u "$app" source $HOME/.cargo/env ) +( sudo -u "$app" export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin" ) +( sudo -u "$app" 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 ) ( cd $final_path/$app && sudo -u "$app" cargo install --no-default-features --features postgres )