From f15d6230e12e2ca94b04b24ca221f5e77f83dfde Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 24 Aug 2023 09:24:42 +0200 Subject: [PATCH] Update install --- scripts/install | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 4c69954..e850264 100644 --- a/scripts/install +++ b/scripts/install @@ -86,17 +86,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 - -# setup python venv ... - -pip install --upgrade setuptools -sudo -u $app env PATH=$PATH pip3 install --upgrade 'cryptography>=3.3.2' -ynh_replace_string --match_string="pyOpenSSL~=20.0.1" --replace_string="pyOpenSSL~=21.0.0" --target_file="$install_dir/api/requirements/base.txt" + fi fi