~dannf/ubuntu/saucy/screen/lp1213278-from-debian

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-10-23 17:36:30 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20071023173630-6q4agogsxuzujhwd
Tags: 4.0.3-7ubuntu1
* Merge with Debian; remaining Ubuntu changes:
  - 07_norootpassword.dpatch: When locking a root-owned screen, check that
    root has a password set. If not, ask for an unlocking key. (LP#6760)
  - debian/preinst: Remove obsolete init script 'screen' on
    upgrades. The script is called 'screen-cleanup' in Debian and thus
    should be called the same in Ubuntu to avoid a permanent and pointless
    delta. This needs to be kept until after the next LTS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
set -e
3
3
 
4
 
case "$1" in
5
 
  remove) ;;
6
 
  purge) ;;
7
 
  upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) exit 0 ;;
8
 
  *)
9
 
    echo "ERROR: screen postrm called with unknown argument \"$1\"."
10
 
    echo "Aborting removal of screen package."
11
 
    exit 1 ;;
12
 
esac
13
 
 
14
 
rm -rf /var/run/screen
15
 
 
16
 
# remove from /etc/shells
17
 
/usr/sbin/remove-shell /usr/bin/screen || true
 
4
if [ "$1" = purge ] || [ "$1" = remove ]; then
 
5
  rm -rf /var/run/screen
 
6
fi
 
7
 
 
8
if [ "$1" = disappear ]; then
 
9
  /usr/sbin/remove-shell /usr/bin/screen || true
 
10
fi
18
11
 
19
12
#DEBHELPER#