File: postrm

package info (click to toggle)
cfingerd 1.4.3-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 968 kB
  • sloc: ansic: 3,776; perl: 501; makefile: 137; 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