updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / gitosis-necoro-git / gitosis.install
blob178d461e3360dd26687ca89f367fd648b264e1f6
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 "==> For installation instruction: http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis"
12         echo "==> "
13         echo "==> You can get more information from: https://github.com/Necoro/gitosis "
14         echo "==> "
17 post_upgrade() {
18         post_install $1
21 pre_remove() {
22         userdel git &> /dev/null
25 op=$1
26 shift
28 $op $*