summaryrefslogtreecommitdiffstats
path: root/abs/core/ca-certificates/ca-certificates-utils.install
blob: bf18c7feeef1bb885327be5e85e06c922470f694 (plain)
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
export LC_ALL=C

post_install() {
	usr/bin/update-ca-trust
}

pre_upgrade() {
	if (( $(vercmp $2 20140923-2) < 0 )); then
		find /etc/ssl/certs -type l -print | while read symlink; do
			case $(readlink $symlink) in
			/usr/share/ca-certificates*) rm -f $symlink;;
			esac
		done
		find /etc/ssl/certs -type l -print | while read symlink; do
			test -f $symlink || rm -f $symlink
		done
		rm -f /etc/ssl/certs/ca-certificates.crt
	fi
}

post_upgrade() {
	usr/bin/update-ca-trust
}

pre_remove() {
	usr/bin/update-ca-trust
}

# vim:set noet ts=8 sw=8: