core/ca-certificates/ca-certificates-utils.install

32 lines
722 B
Plaintext
Raw Normal View History

2014-09-25 12:37:19 +08:00
export LC_ALL=C
post_install() {
usr/bin/update-ca-trust
2014-09-25 12:37:19 +08:00
}
post_upgrade() {
usr/bin/update-ca-trust
2015-05-26 05:59:47 +08:00
if (( $(vercmp $2 20140923-7.1) < 0 )); then
cat <<MSG
The way local CA certificates are handled has changed.
If you have added any certificates manually:
1. Move certificates from /usr/local/share/ca-certificates/
to /etc/ca-certificates/trust-source/anchors/
2. Do the same with root certificates added to /etc/ssl/certs/
3. Instead of \`update-ca-certificates\`, run \`trust extract-compat\`
Also see \`man 8 update-ca-trust\` and \`trust --help\`.
MSG
fi
2014-09-25 12:37:19 +08:00
}
pre_remove() {
usr/bin/update-ca-trust
2015-05-26 05:59:47 +08:00
rm -f etc/ssl/certs/{ca-certificates.crt,java/cacerts}
2014-09-25 12:37:19 +08:00
}
2015-05-26 05:59:47 +08:00
# vim:set noet ts=8 sw=8 sts=0: