summarylogtreecommitdiffstats
path: root/git.install
blob: 453050dfc693e588a0888bf806aac49ed8d3429c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

post_install() {
  # make git-shell a valid shell
  if ! grep -qe '^/usr/bin/git-shell$' etc/shells; then
    echo '/usr/bin/git-shell' >> etc/shells
  fi
}

# do not modify user settings (shell) in post-upgrade function!

post_remove() {
  sed -i -r '/^\/usr\/bin\/git-shell$/d' etc/shells
}