summaryrefslogtreecommitdiff
path: root/libre/ca-certificates-utils/ca-certificates-utils.install
blob: 8e8a483abf31aa3c85c187da14f23dfa27244539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export LC_ALL=C

post_install() {
	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
}

post_upgrade() {
	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
}

pre_remove() {
	usr/bin/update-ca-certificates --fresh >/dev/null 2>&1
}

post_remove() {
	# remove the cert file if it is empty
	[[ -s etc/ssl/certs/ca-certificates.crt ]] || rm -f etc/ssl/certs/ca-certificates.crt
}