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
6281d3d8
Commit
6281d3d8
authored
Jul 20, 2018
by
Nils Werner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change XDG_CACHE_HOME when using NB_USER
parent
702d2f6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base-notebook/start.sh
base-notebook/start.sh
+1
-1
No files found.
base-notebook/start.sh
View file @
6281d3d8
...
@@ -89,7 +89,7 @@ if [ $(id -u) == 0 ] ; then
...
@@ -89,7 +89,7 @@ if [ $(id -u) == 0 ] ; then
# Exec the command as NB_USER with the PATH and the rest of
# Exec the command as NB_USER with the PATH and the rest of
# the environment preserved
# the environment preserved
echo
"Executing the command:
$cmd
"
echo
"Executing the command:
$cmd
"
exec sudo
-E
-H
-u
$NB_USER
PATH
=
$PATH
PYTHONPATH
=
$PYTHONPATH
$cmd
exec sudo
-E
-H
-u
$NB_USER
PATH
=
$PATH
XDG_CACHE_HOME
=
/home/
$NB_USER
/.cache
PYTHONPATH
=
$PYTHONPATH
$cmd
else
else
if
[[
"
$NB_UID
"
==
"
$(
id
-u
jovyan
)
"
&&
"
$NB_GID
"
==
"
$(
id
-g
jovyan
)
"
]]
;
then
if
[[
"
$NB_UID
"
==
"
$(
id
-u
jovyan
)
"
&&
"
$NB_GID
"
==
"
$(
id
-g
jovyan
)
"
]]
;
then
# User is not attempting to override user/group via environment
# User is not attempting to override user/group via environment
...
...
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