diff --git a/stable/jupyter/Chart.yaml b/stable/jupyter/Chart.yaml index 9c2bd7afc..b0e006508 100755 --- a/stable/jupyter/Chart.yaml +++ b/stable/jupyter/Chart.yaml @@ -1,4 +1,4 @@ -version: 0.13.39 +version: 0.13.40 apiVersion: v1 appVersion: 3.4.8 name: jupyter diff --git a/stable/jupyter/templates/jupyter-configmap.yaml b/stable/jupyter/templates/jupyter-configmap.yaml index faa96f058..4e9ac0082 100644 --- a/stable/jupyter/templates/jupyter-configmap.yaml +++ b/stable/jupyter/templates/jupyter-configmap.yaml @@ -48,7 +48,7 @@ data: {{ include "v3io-configs.script.lookupService" . | indent 4 }} ## Reset .bashrc on revision update - BASHRC_REV=1 + BASHRC_REV=2 if ! $(grep -q IGZ_BASHRC_REV_${BASHRC_REV} ${HOME}/.bashrc 2>/dev/null); then log 'Reset .bashrc on revision update' echo "#IGZ_BASHRC_REV_${BASHRC_REV}" > ${HOME}/.bashrc @@ -317,14 +317,13 @@ data: } function extended_conda(){ - if [ "\${CONDA_DEFAULT_ENV-}" = "base" ] && [ "\$1" = "install" ]; then - echo "Error: Conda installations to the (base) environment are not persistent." - echo " Please activate a different conda environment or create a new one." - return 1 - fi - if [[ \${CONDA_DEFAULT_ENV-} =~ jupyter|mlrun-base|mlrun-extended ]] && [ "\$1" = "install" ]; then + if [[ \${CONDA_DEFAULT_ENV-} = "base" || \${CONDA_DEFAULT_ENV-} = "jupyter" || \${CONDA_DEFAULT_ENV-} = "mlrun-base" || \${CONDA_DEFAULT_ENV-} = "mlrun-extended" ]] && [ "\$1" = "install" ]; then echo "Error: Conda installations to the (\${CONDA_DEFAULT_ENV}) environment are not persistent." - echo " Please use PIP for persistent installations or create/activate another conda environment." + if [ "\${CONDA_DEFAULT_ENV-}" = "base" ]; then + echo " Please activate a different conda environment or create a new one." + else + echo " Please use PIP for persistent installations or create/activate another conda environment." + fi return 1 fi conda "\$@" diff --git a/stable/shell/Chart.yaml b/stable/shell/Chart.yaml index 2734b05b0..a5029c191 100644 --- a/stable/shell/Chart.yaml +++ b/stable/shell/Chart.yaml @@ -1,4 +1,4 @@ -version: 0.15.15 +version: 0.15.16 apiVersion: v1 appVersion: ">=2.0.0" description: Shell access to data services diff --git a/stable/shell/templates/shell-configmap.yaml b/stable/shell/templates/shell-configmap.yaml index 694d47422..82cfe8bbc 100644 --- a/stable/shell/templates/shell-configmap.yaml +++ b/stable/shell/templates/shell-configmap.yaml @@ -44,7 +44,7 @@ data: {{ include "v3io-configs.script.lookupService" . | indent 4 }} ## Reset .bashrc on revision update - BASHRC_REV=1 + BASHRC_REV=2 if ! $(grep -q IGZ_BASHRC_REV_${BASHRC_REV} ${HOME}/.bashrc 2>/dev/null); then log 'Reset .bashrc on revision update' echo "#IGZ_BASHRC_REV_${BASHRC_REV}" > ${HOME}/.bashrc @@ -300,14 +300,13 @@ data: } function extended_conda(){ - if [ "\${CONDA_DEFAULT_ENV-}" = "base" ] && [ "\$1" = "install" ]; then - echo "Error: Conda installations to the (base) environment are not persistent." - echo " Please activate a different conda environment or create a new one." - return 1 - fi - if [[ \${CONDA_DEFAULT_ENV-} =~ jupyter|mlrun-base|mlrun-extended ]] && [ "\$1" = "install" ]; then + if [[ \${CONDA_DEFAULT_ENV-} = "base" || \${CONDA_DEFAULT_ENV-} = "jupyter" || \${CONDA_DEFAULT_ENV-} = "mlrun-base" || \${CONDA_DEFAULT_ENV-} = "mlrun-extended" ]] && [ "\$1" = "install" ]; then echo "Error: Conda installations to the (\${CONDA_DEFAULT_ENV}) environment are not persistent." - echo " Please use PIP for persistent installations or create/activate another conda environment." + if [ "\${CONDA_DEFAULT_ENV-}" = "base" ]; then + echo " Please activate a different conda environment or create a new one." + else + echo " Please use PIP for persistent installations or create/activate another conda environment." + fi return 1 fi conda "\$@"