From 3e78ea9040b4f7c78457f28979fee2ffbdee1a77 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Thu, 28 Jun 2018 01:30:14 -0700 Subject: [PATCH] Add trailing newline to sudoers file Required by sudo's config syntax --- tljh/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tljh/installer.py b/tljh/installer.py index 7ab4f7c..5713eb6 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -78,7 +78,7 @@ with open('/etc/sudoers.d/jupyterhub-admins', 'w') as f: # `sudo -E` should preserve the $PATH we set. This allows # admins in jupyter terminals to do `sudo -E pip install `, # `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_packages(USER_ENV_PREFIX, [