Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
44d010e9
Commit
44d010e9
authored
Apr 13, 2018
by
Chris Ottinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in start.sh ensure usename jovyan exists before attempting usermod
parent
8a1b90cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
base-notebook/start.sh
base-notebook/start.sh
+5
-3
No files found.
base-notebook/start.sh
View file @
44d010e9
...
...
@@ -30,9 +30,11 @@ done
# Handle special flags if we're root
if
[
$(
id
-u
)
==
0
]
;
then
# Handle username change. Since this is cheap, do this unconditionally
# Only attempt to change the jovyan username if it exists
if
id
jovyan &> /dev/null
;
then
echo
"Set username to:
$NB_USER
"
usermod
-d
/home/
$NB_USER
-l
$NB_USER
jovyan
fi
# Handle case where provisioned storage does not have the correct permissions by default
# Ex: default NFS/EFS (no auto-uid/gid)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment