File: postrm

package info (click to toggle)
afbackup 3.3.6pl4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,872 kB
  • ctags: 3,143
  • sloc: ansic: 44,316; tcl: 4,189; sh: 2,263; csh: 2,077; makefile: 566; sed: 93; perl: 80
file content (29 lines) | stat: -rw-r--r-- 551 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
#!/bin/sh -e

case "$1" in
  purge)
	rm -f /var/log/afbackup/server.backup.log*
	rm -f /var/lib/afbackup/tapepos
	if [ ! -f /var/lib/afbackup/num ]; then
	    rm -rf /var/lib/afbackup
	fi
	if [ ! -f /etc/afbackup/client.conf ]; then
	    rm -rf /etc/afbackup
	fi
	if [ ! -f /var/log/afbackup/client.backup.log ]; then
	    rm -rf /var/log/afbackup
	fi
  ;;
  remove|upgrade|deconfigure)
    update-inetd --remove "^afbackup"
  ;;
         
  failed-upgrade)
  ;;
                
  *)
	echo "unknown argument --> $1" >&2
	exit 0
  ;;
esac
#DEBHELPER#