From a4d434f22df175f6e337fef8f099a197b574f64b Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Wed, 25 May 2022 12:53:54 -0700 Subject: 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 --- src/jupyterlab/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/jupyterlab') 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 -- cgit v1.2.3