Commit 03f1a433 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent b798f4cd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -103,10 +103,10 @@ for i in *.md ; do
    	SOCK_GID=$(stat -c "%g" /var/run/docker.sock)

    	# Make sure a matching group exists for the socket
		addgroup -g "$SOCK_GID" dockergroup 2>/dev/null || true
		addgroup --gid "$SOCK_GID" dockergroup 2>/dev/null || true

    	# Create a passwd entry for the host user
    	echo "ciuser:x:${HOST_UID}:${SOCK_GID}:CI User:/home/ciuser:/bin/bash" >> /etc/passwd
		adduser --disabled-password --gecos "CI User" --uid "$HOST_UID" --gid "$SOCK_GID" --home /home/ciuser --shell /bin/sh ciuser 2>/dev/null || true
    	mkdir -p /home/ciuser
      	chown "$HOST_UID":"$SOCK_GID" /home/ciuser