updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / gitosis-git / gitosis.install
bloba4be03f0830a78d21cf843889f186ad4dfafc195
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 $*