File: postrm

package info (click to toggle)
cfingerd 1.4.3-1.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 636 kB
  • ctags: 437
  • sloc: ansic: 3,706; perl: 502; makefile: 166; sh: 72
file content (20 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

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