14 lines
371 B
Text
14 lines
371 B
Text
case ${ACTION} in
|
|
pre)
|
|
# clean up certificates
|
|
backup=etc/ca-certificates.conf.tmp
|
|
mv etc/ca-certificates.conf $backup
|
|
echo > etc/ca-certificates.conf
|
|
env DESTDIR=. 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
|