mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Simplify template used for generating systemd unit names
This commit is contained in:
@@ -34,5 +34,7 @@ c.ConfigurableHTTPProxy.api_url = 'http://127.0.0.1:15002'
|
|||||||
|
|
||||||
c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')]
|
c.SystemdSpawner.extra_paths = [os.path.join(USER_ENV_PREFIX, 'bin')]
|
||||||
c.SystemdSpawner.default_shell = '/bin/bash'
|
c.SystemdSpawner.default_shell = '/bin/bash'
|
||||||
|
# Drop the '-singleuser' suffix present in the default template
|
||||||
|
c.SystemdSpawner.unit_name_template = 'jupyter-{USERNAME}'
|
||||||
|
|
||||||
configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)
|
configurer.apply_yaml_config(os.path.join(INSTALL_PREFIX, 'config.yaml'), c)
|
||||||
|
|||||||
Reference in New Issue
Block a user