Commit 43ae1cba authored by Ram-Z's avatar Ram-Z

enter_chroot: only bind the ssh socket not the parent dir

parent f48d5b33
......@@ -109,10 +109,8 @@ actual_chroot() {
msg "Found $ssh, will bind it to container!"
binds+=(--bind="$ssh":/chakra/.ssh)
if [[ -S "$SSH_AUTH_SOCK" ]]; then
local auth_sock_dir=$(dirname $SSH_AUTH_SOCK)
binds+=(--bind="$auth_sock_dir")
binds+=(--bind="$SSH_AUTH_SOCK")
setenvs+=(--setenv=SSH_AUTH_SOCK=$SSH_AUTH_SOCK)
setenvs+=(--setenv=SSH_AGENT_PID=$SSH_AGENT_PID)
fi
else
msg "I can't find anything about $ssh, exiting automatic bind process..."
......
Markdown is supported
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