aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-05-26 04:32:41 +0300
committerGitHub <noreply@github.com>2022-05-26 04:32:41 +0300
commiteb6ed37debc6b0639eeb08a37ddde031e6d54fa8 (patch)
tree287ff1248cb8c2dd64f25681a806320f84dbb5a4
parent04f5d29fd077718a364fa79c76e103e5c0f3c1ad (diff)
fix anaconda pathing
-rw-r--r--src/anaconda/feature.json8
-rw-r--r--src/anaconda/install.sh7
2 files changed, 11 insertions, 4 deletions
diff --git a/src/anaconda/feature.json b/src/anaconda/feature.json
index 7af90cd..f733b63 100644
--- a/src/anaconda/feature.json
+++ b/src/anaconda/feature.json
@@ -4,11 +4,17 @@
"options": {
"version": {
"type": "string",
- "proposals": ["latest"],
+ "proposals": [
+ "latest"
+ ],
"default": "latest",
"description": "Select or enter an anaconda version."
}
},
+ "containerEnv": {
+ "CONDA_DIR": "/usr/local/conda",
+ "PATH": "${CONDA_DIR}/bin:${PATH}"
+ },
"install": {
"app": "",
"file": "install.sh"
diff --git a/src/anaconda/install.sh b/src/anaconda/install.sh
index c77d98d..9c5706f 100644
--- a/src/anaconda/install.sh
+++ b/src/anaconda/install.sh
@@ -10,9 +10,10 @@
# Syntax: ./anaconda-debian.sh [Conda version] [CONDA_DIR] [Non-root user] [Add rc files flag]
VERSION=${1:-"latest"}
-export CONDA_DIR=${2:-"/usr/local/conda"}
-USERNAME=${3:-"automatic"}
-UPDATE_RC=${4:-"true"}
+USERNAME=${2:-"automatic"}
+UPDATE_RC=${3:-"true"}
+
+CONDA_DIR=${CONDA_DIR:-"/usr/local/conda"}
set -eux
export DEBIAN_FRONTEND=noninteractive