summaryrefslogtreecommitdiff
path: root/debian/postrm
blob: d3585a251c9ca40f9e3f9c95cb8113c2d2d49579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

case "$1" in
  remove) ;;
  purge) ;;
  upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) exit 0 ;;
  *)
    echo "ERROR: screen postrm called with unknown argument \"$1\"."
    echo "Aborting removal of screen package."
    exit 1 ;;
esac

install-info --quiet --remove screen

rm -rf /var/run/screen

if command -v suidunregister > /dev/null 2>&1; then
  suidunregister -s screen /usr/bin/screen
fi