diff --git a/scripts/upgrade b/scripts/upgrade index 7f20fa4..cd7eb2d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,10 +72,11 @@ then # Install rustup is not already installed # We need this to be able to install cryptgraphy export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin" -if [ -e $install_dir/.rustup ]; then + if [ -e $install_dir/.rustup ]; then sudo -u "$app" env PATH=$PATH rustup update -else + else sudo -u "$app" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal' + fi fi pushd $install_dir