diff --git a/tljh/installer.py b/tljh/installer.py index de817a1..aacd03a 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -115,7 +115,6 @@ def ensure_jupyterhub_package(prefix): os.path.join(HERE, "requirements-hub-env.txt"), upgrade=True, ) - traefik.ensure_traefik_binary(prefix) def ensure_usergroups(): @@ -536,6 +535,7 @@ def main(): logger.info("Setting up JupyterHub...") ensure_jupyterhub_package(HUB_ENV_PREFIX) + traefik.ensure_traefik_binary(HUB_ENV_PREFIX) # Stop the http server with the progress page before traefik starts if args.progress_page_server_pid: diff --git a/tljh/traefik.py b/tljh/traefik.py index 9f0aae1..07b2f48 100644 --- a/tljh/traefik.py +++ b/tljh/traefik.py @@ -91,7 +91,10 @@ def check_traefik_version(traefik_bin): @backoff.on_exception(backoff.expo, Exception, max_tries=2, giveup=fatal_error) def ensure_traefik_binary(prefix): - """Download and install the traefik binary to a location identified by a prefix path such as '/opt/tljh/hub/'""" + """ + Ensure that a traefik binary of a hardcoded version is made available at a + prefix path such as '/opt/tljh/hub/'. + """ if plat is None: raise OSError( f"Error. Platform: {os.uname().sysname} / {machine} Not supported."