Skip to content

Instantly share code, notes, and snippets.

@raidery
Created September 7, 2017 08:47
Show Gist options
  • Save raidery/c33819f9b5753da34884adb038e52df7 to your computer and use it in GitHub Desktop.
Save raidery/c33819f9b5753da34884adb038e52df7 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
set -e
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
# launched by JupyterHub, use single-user entrypoint
exec /usr/local/bin/start-singleuser.sh $*
else
. /usr/local/bin/start.sh jupyter notebook $*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment