summarylogtreecommitdiffstats
path: root/rush.install
blob: ad7bf9302130fb05089d2dd80de9980893e51bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  grep -qx /bin/rush /etc/shells || echo /bin/rush >> /etc/shells
  grep -qx /usr/bin/rush /etc/shells || echo /usr/bin/rush >> /etc/shells
}

post_upgrade() {
  post_install
}

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

# vim:set ts=2 sw=2 et: