updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / gitosis-wildcard / gitosis.install
blobaf054ebaedc0714efa41c00c9b53ea130771c0bc
1 post_install() {
2         echo "==> "
3         echo "==> Creating gitosis user and group..."
4     
5         groupadd -r git &> /dev/null
6         useradd -r -m -k /dev/null -g git -d /srv/gitosis -s /bin/sh git  &> /dev/null
7         chmod 700 /srv/gitosis
8         
9         echo "==> "
10         echo "==> Example config files are installed in /usr/share/doc/gitosis"
11         echo "==> "
12         echo "==> You can get more information from: http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis"
13         echo "==> "
16 post_upgrade() {
17         post_install $1
20 pre_remove() {
21         userdel git &> /dev/null
24 op=$1
25 shift
27 $op $*