File: cracklib-runtime.prerm.in

package info (click to toggle)
cracklib2 2.7-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 424 kB
  • ctags: 113
  • sloc: ansic: 1,914; sh: 1,084; makefile: 166; perl: 63
file content (44 lines) | stat: -rw-r--r-- 998 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#
# source:
#   /var/cvs/projects/debian/cracklib/debian/dpkg.src/cracklib-runtime.prerm.in,v
#
# revision:
#   @(#) cracklib-runtime.prerm.in,v 1.2 1999/03/29 15:30:21 jplejacq Exp
#
# copyright:
#   Copyright (C) 1998, 1999 Jean Pierre LeJacq <jplejacq@quoininc.com>
#
#   Distributed under the GNU GENERAL PUBLIC LICENSE.
#
# synopsis:
#   prerm remove
#   prerm upgrade <new-version>
#   prerm failed-upgrade <old-version>
#   prerm remove in-favour <package> <new-version>
#   prerm deconfigure in-favour <package-being-installed>
#     <version> removing <conflicting-package> <version>
#
# description:
#   Debian pre removal script.
#
# bugs:
#   Doesn't handle fail-upgrade argument.


# main:
  set -e


  if [ "remove" = "${1}" -o "upgrade" = "${1}" -o "deconfigure" = "${1}" ]
  then
    if [ -x "/usr/sbin/install-docs"  -a  -r "@@f_pkgruntime_docbase@@" ]
    then
      /usr/sbin/install-docs -r @@pkgruntime@@
    fi

    rm -f @@d_pkgruntime_doc@@/.dhelp
  fi


  exit 0