File: postrm

package info (click to toggle)
sarg 2.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,456 kB
  • sloc: ansic: 17,692; sh: 4,581; xml: 371; javascript: 352; php: 205; makefile: 183; sed: 16; pascal: 2
file content (56 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (5)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#! /bin/sh

set -e

case "$1" in
	abort-upgrade)
		version=$2
		if dpkg --compare-versions "$2" lt 2.2.6-1; then
			if test -f /etc/sarg/sarg.conf; then
				mv /etc/sarg/sarg.conf /etc/squid
			fi

			if test -f /etc/sarg/exclude_codes; then
				mv /etc/sarg/exclude_codes /etc/squid/sarg.exclude_codes
			fi

			if test -f /etc/sarg/exclude_hosts; then
				mv /etc/sarg/exclude_hosts /etc/squid/sarg.hosts
			fi

			if test -f /etc/sarg/sarg-reports.conf; then
				mv /etc/sarg/sarg-reports.conf /etc/squid
			fi

			if test -f /etc/sarg/exclude_users; then
				mv /etc/sarg/exclude_users /etc/squid/sarg.users
			fi

			if test -f /etc/sarg/usertab; then
				mv /etc/sarg/usertab /etc/squid/usertab
			fi

			if test -f /etc/sarg/user_limit_block; then
				mv /etc/sarg/user_limit_block /etc/squid
			fi

			if test -d /usr/share/sarg/languages; then
				mv /usr/share/sarg/languages /etc/squid
			fi

			if test -d /usr/share/sarg/images; then
				mv /usr/share/sarg/images /etc/squid
			fi

			if test -d /usr/share/sarg/fonts; then
				mv /usr/share/sarg/fonts /etc/squid
			fi

			if test -d /var/lib/sarg; then
				mv /var/lib/sarg /var/www/squid-reports
			fi
		fi
		;;
esac

#DEBHELPER#