mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Don't install hub's conda if you don't have to
This lets us use the installer script as an upgrade script as well
This commit is contained in:
@@ -10,6 +10,13 @@ TLJH_INSTALL_PIP_FLAGS=${TLJH_INSTALL_PIP_FLAGS:---no-cache-dir}
|
||||
function install_miniconda {
|
||||
CONDA_DIR=${1}
|
||||
CONDA_VERSION=4.5.4
|
||||
if [ -e ${CONDA_DIR}/bin/conda ]; then
|
||||
if [ "$(${CONDA_DIR}/bin/conda -V)" == "conda ${CONDA_VERSION}" ]; then
|
||||
# The given ${CONDA_DIR} already has a conda with given version
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
URL="https://repo.continuum.io/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh"
|
||||
INSTALLER_PATH=/tmp/miniconda-installer.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user