All-in-one Git hosting container
git clone git://git.janzachar.dev/git-serv.git
0#!/bin/sh12set -eu3#shellcheck source=config/env4. "/srv/config/env"56id -u "$GIT_USER" 2>/dev/null || {7 adduser -D -s /usr/bin/git-shell -u 1000 "$GIT_USER" > /dev/null8 #adduser -D -s /bin/sh -u 1000 "$GIT_USER"910 # hint: 'p' makes sed repeat each line twice11 sed 'p' /proc/sys/kernel/random/uuid | passwd "$GIT_USER" > /dev/null1213 cp -R /srv/config/git-shell-commands /home/"$GIT_USER"/git-shell-commands1415 chmod -R 755 /home/"$GIT_USER"/git-shell-commands16 chown "$GIT_USER":"$GIT_USER" /log17 chown "$GIT_USER":"$GIT_USER" /srv/pages18}1920