File: postrm

package info (click to toggle)
sendfile 2.1b.20080616-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,148 kB
  • sloc: ansic: 13,128; sh: 4,193; perl: 844; makefile: 132; java: 36; csh: 3
file content (26 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (4)
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
#! /bin/sh
# post removal script for the Debian GNU/Linux sendfile package

set -e

if [ "$1" = "purge" ]
then
  rm -rf /var/log/sendfile >/dev/null

    if [ -d /var/spool/sendfile ]
    then
	cd /var/spool/sendfile

	if [ -n "`ls`" ]; then
	    for u in *; do
		for num in 7 6 5 4 3 2 1; do
		    if [ -f $u/log.$num ]; then rm -f $u/log.$num; fi
		done
	    done
	fi
	cd /
	rm -rf /var/spool/sendfile >/dev/null
    fi
fi

test ! -x update-inetd || update-inetd --remove saft