Skip to content
Snippets Groups Projects
Commit 72eb4112 authored by jurgenhaas's avatar jurgenhaas
Browse files

Try using group docker as users group id on Mac

parent 689f7f13
No related branches found
No related tags found
1 merge request!1Feature/macos
......@@ -19,6 +19,7 @@ case "${L3DHOSTOS}" in
SCRIPTPATH="$(dirname "$(greadlink -f "$0")")"
L3DDOCKERHOST="$(dirname "$(greadlink -f "/var/run/docker.sock")")/docker.sock"
fi
GROUPID=$(cut -d: -f3 < <(getent group docker))
# Write a fake passwd file which will later be mounted into containers.
echo "${USERNAME}:x:${USERID}:${GROUPID}:${USERNAME},,,:/home/${USERNAME}:${L3DSHELL}" >${HOME}/.passwd
# This variable is used to access the ssh agent on MacOS.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment