File: postrm

package info (click to toggle)
cfingerd 1.4.3-3%2Bsqueeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 652 kB
  • ctags: 441
  • sloc: ansic: 3,770; perl: 500; makefile: 154; sh: 73
file content (22 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

set -e

if [ "$1" = "purge" ]
then
    rm -f /var/log/cfingerd.log*
    if [ -d /var/log/OLD ]
    then
	rm -f /var/log/OLD/cfingerd.log*
    fi
    test -d /etc/cfingerd && rm -rf /etc/cfingerd
fi

# This will be executed on removal and purging of the package.
if [ "$1" = "remove" ]; then
    update-inetd --remove cfingerd
    if grep -s "^[^ *#]" /etc/xinetd.conf | grep -q cfingerd; then
	echo "Please remove the cfingerd entry from your /etc/xinetd.conf file"
	echo "manually."
    fi
fi