mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
move plugin call
This commit is contained in:
@@ -37,14 +37,14 @@ def ensure_user(username):
|
||||
username
|
||||
])
|
||||
|
||||
pm.hook.tljh_new_user_create(username=username)
|
||||
|
||||
subprocess.check_call([
|
||||
'chmod',
|
||||
'o-rwx',
|
||||
expanduser('~{username}'.format(username=username))
|
||||
])
|
||||
|
||||
pm.hook.tljh_new_user_create(username=username)
|
||||
|
||||
|
||||
def remove_user(username):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user