2011-06-22 19:48:55 +00:00
|
|
|
case ${ACTION} in
|
|
|
|
pre)
|
|
|
|
# clean up certificates
|
2011-06-26 08:19:14 +00:00
|
|
|
_backup=$(mktemp)
|
2011-06-22 19:48:55 +00:00
|
|
|
mv etc/ca-certificates.conf ${_backup}
|
|
|
|
echo > etc/ca-certificates.conf
|
|
|
|
usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1
|
|
|
|
mv ${_backup} etc/ca-certificates.conf
|
|
|
|
;;
|
|
|
|
post)
|
|
|
|
[ -s etc/ssl/certs/ca-certificates.crt ] || \
|
|
|
|
rm -f etc/ssl/certs/ca-certificates.crt
|
|
|
|
;;
|
|
|
|
esac
|