aboutsummaryrefslogtreecommitdiff
path: root/src/jupyterlab/install.sh
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-05-25 22:53:54 +0300
committerGitHub <noreply@github.com>2022-05-25 22:53:54 +0300
commita4d434f22df175f6e337fef8f099a197b574f64b (patch)
tree5cc16619a5b99f0305c488d6f1ba29e2a2db926c /src/jupyterlab/install.sh
parent343465890b2b710fd6c9cf33b1365d24a9603147 (diff)
sync with jammy updates (#21)
sync with jammy updates (https://github.com/microsoft/vscode-dev-containers/commit/053a0557211c98e5b9f0e8ccf755f6f143b05ef4) and other minor additions since copy over
Diffstat (limited to 'src/jupyterlab/install.sh')
-rw-r--r--src/jupyterlab/install.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jupyterlab/install.sh b/src/jupyterlab/install.sh
index f6c93f9..76bb93c 100644
--- a/src/jupyterlab/install.sh
+++ b/src/jupyterlab/install.sh
@@ -14,7 +14,7 @@ set -e
VERSION=${1:-"latest"}
USERNAME=${2:-"automatic"}
PYTHON=${3:-"python"}
-ALLOW_ORIGIN=${4:-""}
+ALLOW_ALL_ORIGINS=${4:-""}
# If in automatic mode, determine if a user already exists, if not use vscode
if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
@@ -70,6 +70,7 @@ else
sudoUserIf ${PYTHON} -m pip install jupyterlab=="${VERSION}" --no-cache-dir
fi
-if [ "${ALLOW_ORIGIN}" = 'true' ]; then
+if [ "${ALLOW_ALL_ORIGINS}" = 'true' ]; then
addToJupyterConfig "c.ServerApp.allow_origin = '*'"
-fi
+ addToJupyterConfig "c.NotebookApp.allow_origin = '*'"
+fi \ No newline at end of file