File: amanda-common.postrm

package info (click to toggle)
amanda 1:3.5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 30,724 kB
  • sloc: ansic: 265,630; perl: 114,269; xml: 16,058; sh: 8,667; makefile: 2,795; awk: 502; lex: 407; yacc: 347; javascript: 135; tcl: 118; sql: 19; sed: 16; php: 2
file content (38 lines) | stat: -rw-r--r-- 695 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh -e
set -e
case "$1" in
  purge)
	if [ -d /var/log/amanda ]; then
		rm -rf /var/log/amanda
	fi
	if [ -d /var/lib/amanda-gnutar-lists ]; then
		rm -rf /var/lib/amanda-gnutar-lists
	fi
	if [ -d /var/lib/amanda-index ]; then
		rm -rf /var/lib/amanda-index
	fi
	if [ -d /var/lib/amanda ]; then
		rm -rf /var/lib/amanda
	fi
	# keep this around to clean up after old, broken amanda packages
	# new packages have amandates in /var/lib/amanda...
	if [ -f /var/lib/amandates ]; then
		rm -f /var/lib/amandates
	fi

	rm -f ~backup/.amandahosts

  ;;
  remove|upgrade|deconfigure)
  ;;

  failed-upgrade)
  ;;

  *)
        echo "unknown argument --> $1" >&2
        exit 0
  ;;
esac

#DEBHELPER#