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