Loading specifications/publish_spec.sh +5 −7 Original line number Diff line number Diff line Loading @@ -103,14 +103,12 @@ for i in *.md ; do SOCK_GID=$(stat -c "%g" /var/run/docker.sock) # Make sure a matching group exists for the socket groupadd -for -g "$SOCK_GID" dockergroup || true addgroup -g "$SOCK_GID" dockergroup 2>/dev/null || true # Create a passwd entry for the host user if ! grep -qE "^([^:]*:){2}${HOST_UID}:" /etc/passwd; then echo "ciuser:x:${HOST_UID}:${SOCK_GID}:CI User:/home/ciuser:/bin/bash" >> /etc/passwd mkdir -p /home/ciuser chown "$HOST_UID":"$SOCK_GID" /home/ciuser fi # Run the refresh command as that UID (not root) su -s /bin/bash -c \ Loading Loading
specifications/publish_spec.sh +5 −7 Original line number Diff line number Diff line Loading @@ -103,14 +103,12 @@ for i in *.md ; do SOCK_GID=$(stat -c "%g" /var/run/docker.sock) # Make sure a matching group exists for the socket groupadd -for -g "$SOCK_GID" dockergroup || true addgroup -g "$SOCK_GID" dockergroup 2>/dev/null || true # Create a passwd entry for the host user if ! grep -qE "^([^:]*:){2}${HOST_UID}:" /etc/passwd; then echo "ciuser:x:${HOST_UID}:${SOCK_GID}:CI User:/home/ciuser:/bin/bash" >> /etc/passwd mkdir -p /home/ciuser chown "$HOST_UID":"$SOCK_GID" /home/ciuser fi # Run the refresh command as that UID (not root) su -s /bin/bash -c \ Loading