]> begriffs open source - repo-ui/blob - repo-new
How to host gitweb
[repo-ui] / repo-new
1 #!/bin/sh
2 set -e
3
4 if [ $# -ne 3 ]; then
5         echo "Usage: $0 name category description"
6         exit 1
7 fi
8
9 r="/var/www/git/$1"
10
11 git init --bare "$r"
12 ln -s /var/www/bin/post-update "$r/hooks/post-update"
13 echo "$2" > "$r/category"
14 echo "$3" > "$r/description"
15 chown -R git "$r"