Skip to content

Commit

Permalink
Merge pull request #915 from consideRatio/pr/update-systemdspawner
Browse files Browse the repository at this point in the history
Update systemdspawner from version 0.17.* to >=1.0.1,<2
  • Loading branch information
consideRatio authored Jun 8, 2023
2 parents 84ea189 + c5eae33 commit 7974981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tljh/requirements-hub-env.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# If a dependency is bumped to a new major version, we should make a major
# version release of tljh.
#
jupyterhub>=4.0.0,<5
jupyterhub-systemdspawner>=0.17.0,<1
jupyterhub>=4.0.1,<5
jupyterhub-systemdspawner>=1.0.1,<2
jupyterhub-firstuseauthenticator>=1.0.0,<2
jupyterhub-nativeauthenticator>=1.2.0,<2
jupyterhub-ldapauthenticator>=1.3.2,<2
Expand Down
2 changes: 2 additions & 0 deletions tljh/user_creating_spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def start(self):
user.ensure_user(system_username)
user.ensure_user_group(system_username, "jupyterhub-users")
if self.user.admin:
self.disable_user_sudo = False
user.ensure_user_group(system_username, "jupyterhub-admins")
else:
self.disable_user_sudo = True
user.remove_user_group(system_username, "jupyterhub-admins")
if self.user_groups:
for group, users in self.user_groups.items():
Expand Down

0 comments on commit 7974981

Please sign in to comment.