mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add trailing newline to sudoers file
Required by sudo's config syntax
This commit is contained in:
@@ -78,7 +78,7 @@ with open('/etc/sudoers.d/jupyterhub-admins', 'w') as f:
|
|||||||
# `sudo -E` should preserve the $PATH we set. This allows
|
# `sudo -E` should preserve the $PATH we set. This allows
|
||||||
# admins in jupyter terminals to do `sudo -E pip install <package>`,
|
# admins in jupyter terminals to do `sudo -E pip install <package>`,
|
||||||
# `pip` is in the $PATH we set in jupyterhub_config.py to include the user conda env.
|
# `pip` is in the $PATH we set in jupyterhub_config.py to include the user conda env.
|
||||||
f.write('Defaults exempt_group = jupyterhub-admins')
|
f.write('Defaults exempt_group = jupyterhub-admins\n')
|
||||||
|
|
||||||
conda.ensure_conda_env(USER_ENV_PREFIX)
|
conda.ensure_conda_env(USER_ENV_PREFIX)
|
||||||
conda.ensure_conda_packages(USER_ENV_PREFIX, [
|
conda.ensure_conda_packages(USER_ENV_PREFIX, [
|
||||||
|
|||||||
Reference in New Issue
Block a user