15 lines
351 B
Plaintext
15 lines
351 B
Plaintext
case ${ACTION} in
|
|
pre)
|
|
# clean up certificates
|
|
local _backup=$(mktemp)
|
|
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
|