summaryrefslogtreecommitdiffstats
path: root/abs/extra/git/git.install
blob: 064eda019bde6b8fbd4d996c72edc60d8eb06e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
  if ! getent group git >/dev/null; then
    groupadd --system git 
  fi
  if ! getent passwd git >/dev/null; then
    useradd --system -c 'git daemon user' -g git -d / -s /bin/bash git 
  fi
}

post_upgrade() {
  post_install $1
}