core/git/git.install

15 lines
304 B
Plaintext
Raw Normal View History

#!/bin/sh
2012-09-10 04:34:56 +08:00
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
2012-09-10 04:34:56 +08:00
fi
}
# do not modify user settings (shell) in post-upgrade function!
2012-09-10 04:34:56 +08:00
post_remove() {
sed -i -r '/^\/usr\/bin\/git-shell$/d' etc/shells
2012-09-10 04:34:56 +08:00
}