Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sergey Gorbunov
CbmTools
Commits
eb440d52
Commit
eb440d52
authored
Sep 30, 2020
by
Sergey Gorbunov
Browse files
Merge branch 'e.clerkin-master-patch-65461' into 'master'
Update cbmdock/cbmdockInit.sh See merge request
!1
parents
8513b87c
8ac622cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
cbmdock/cbmdockInit.sh
cbmdock/cbmdockInit.sh
+3
-8
No files found.
cbmdock/cbmdockInit.sh
View file @
eb440d52
...
...
@@ -33,15 +33,10 @@ docker exec -t --user root ${ContainerName} bash -c "\
echo 'cbmdock ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/cbmdock &&
\
chmod 0440 /etc/sudoers.d/cbmdock "
# create cbmdock alias on the host. It runs a shell in the container with an actual DISPLAY value
source
~/.bashrc
if
[[
`
alias
|
grep
cbmdock |
wc
-l
`
-eq
0
]]
if
[[
`
alias
|
grep
-q
cbmdock
`
]]
then
echo
create cbmdock
alias
echo
"alias cbmdock='docker start "
${
ContainerName
}
"; docker exec -ti -e DISPLAY=
\$
DISPLAY "
${
ContainerName
}
" bash'"
>>
~/.bashrc
else
echo
cbmdock
alias
already exists
fi
source
~/.bashrc
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