Commit 7be7b819 authored by nvmnghia's avatar nvmnghia

Force install conda

parent a68ad7f9
......@@ -13,7 +13,7 @@ usr=$(env | grep SUDO_USER | cut -d= -f 2)
apt update -y
apt install -y openssh-server curl wget
apt install -y openssh-server curl wget cmake
# https://stackoverflow.com/a/5171935/5959593
......@@ -64,7 +64,7 @@ echo "Install anaconda"
ANACONDA_LATEST=$(wget -r --spider -l 1 https://repo.anaconda.com/archive/ 2>&1 | grep Anaconda3 | grep -v ppc64le | grep -m 1 Linux)
ANACONDA_LATEST=${ANACONDA_LATEST##*-- } # Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget -O anaconda.sh $ANACONDA_LATEST
sudo -u $usr bash ./anaconda.sh -p $HOME/anaconda
sudo -u $usr bash ./anaconda.sh -f -p $HOME/anaconda
rm -rf anaconda.sh repo.anaconda.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment