Commit eb440d52 authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

Merge branch 'e.clerkin-master-patch-65461' into 'master'

Update cbmdock/

See merge request !1
parents 8513b87c 8ac622cb
......@@ -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`]]
echo create cbmdock alias
echo "alias cbmdock='docker start "${ContainerName}"; docker exec -ti -e DISPLAY=\$DISPLAY "${ContainerName}" bash'" >> ~/.bashrc
echo cbmdock alias already exists
source ~/.bashrc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment