post_install()
{
	echo "Installing initial ca-certificates cache"
	/usr/bin/update-ca-certificates --fresh
	echo "done"
}

post_upgrade()
{
	echo "Updating ca-certificates cache"
	/usr/bin/update-ca-certificates

	# Now find and remove all broken symlinks
	find -L /etc/ssl/certs -maxdepth 1 -type l -delete
	echo "done"
}

op=$1
shift
$op $*

