All-in-one Git hosting container
git clone git://git.janzachar.dev/git-serv.git
0#!/bin/sh123#shellcheck source=config/env4. "/srv/config/env"56usage() {7 echo "usage: rm <name>"8 echo " removes a repo the given name"9 echo " example: rm test"10 exit 111}1213[ $# -ne 1 ] && usage1415REPO="/repos/${1}.git"1617[ ! -d "$REPO" ] && {18 echo "'${1}' does not exist!"19 exit 120}2122rm -Rf "$REPO"2324SRC=/repos \25BUILD=/srv/pages \26 python3 /srv/spgit/src/main.py >> /log/spgit 2>> /log/spgit2728