Skip to content

Commit

Permalink
fixed tab error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathematicalmichael committed Feb 19, 2019
1 parent 916eb2d commit c46bb60
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ def start(self):
for group_id in group_list: # admins in userlist get to write files.
if group_id != 'admin':
if 'admin' in group_list:
self.volumes['shared-{}'.format(group_id)] = {
'bind': '/home/jovyan/%s'%(group_id),
'mode': 'rw', # or ro for read-only
}
self.volumes['shared-{}'.format(group_id)] = \
{ 'bind': '/home/jovyan/%s'%(group_id),
'mode': 'rw' } # or ro for read-only
else: # this "shared-" is part of the naming convention
self.volumes['shared-{}'.format(group_id)] = {
'bind': '/home/jovyan/%s'%(group_id),
'mode': 'ro',
}
self.volumes['shared-{}'.format(group_id)] = \
{'bind': '/home/jovyan/%s'%(group_id),
'mode': 'ro' } # or rw for write (can cause conflicts)
else: # if admin is one of the groups in userlist, mount the following:
self.volumes['%s/userlist'%(os.environ['HUB_LOC'])] = \
{ 'bind': '/home/jovyan/userlist', 'mode': 'rw' }
Expand Down

0 comments on commit c46bb60

Please sign in to comment.