Add trailing newline to sudoers file

Required by sudo's config syntax
This commit is contained in:
yuvipanda
2018-06-28 01:30:14 -07:00
parent 3f0c8942cc
commit 3e78ea9040

View File

@@ -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, [