Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tljh-plasma/tljh_plasma/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import grp
import os
import pwd
import shutil

from dockerspawner import SystemUserSpawner
from jupyterhub.auth import PAMAuthenticator
Expand Down Expand Up @@ -59,6 +60,7 @@ async def start(self, *args, **kwargs):
# create the user directory on the host if it does not exist
volume_path = os.path.join(user_home, display_name)
os.makedirs(volume_path, exist_ok=True)
shutil.chown(volume_path, username, username)

# the escaped environment name is used to create a new folder in the user home directory
home = os.path.abspath(os.path.join(user_home, os.path.pardir))
Expand Down