Skip to content

Commit

Permalink
allowing root
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianhao-Gu committed Sep 12, 2024
1 parent 901b5eb commit 8ec0305
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/notebook_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ elif [ "$JUPYTER_MODE" = "jupyterhub" ]; then
# unset global $NOTEBOOK_DIR var, as it should be configured individually for each user's spawner
unset NOTEBOOK_DIR

jupyterhub --allow-root -f "$JUPYTERHUB_CONFIG_DIR"/jupyterhub_config.py
jupyterhub -f "$JUPYTERHUB_CONFIG_DIR"/jupyterhub_config.py
else
echo "ERROR: JUPYTER_MODE is not set to jupyterlab or jupyterhub. Please set JUPYTER_MODE to either jupyterlab or jupyterhub."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/spawn_notebook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ echo "Starting Jupyter Notebook for user: $USERNAME"
cd $JUPYTERHUB_USER_HOME/$USERNAME

# Start the notebook server with current user
exec jupyterhub-singleuser
exec jupyterhub-singleuser --allow-root

0 comments on commit 8ec0305

Please sign in to comment.