You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
304B

  1. #!/bin/sh
  2. post_install() {
  3. # make git-shell a valid shell
  4. if ! grep -qe '^/usr/bin/git-shell$' etc/shells; then
  5. echo '/usr/bin/git-shell' >> etc/shells
  6. fi
  7. }
  8. # do not modify user settings (shell) in post-upgrade function!
  9. post_remove() {
  10. sed -i -r '/^\/usr\/bin\/git-shell$/d' etc/shells
  11. }