#!/bin/bash
set -e
# Wygeneruj magazyn PKI teraz (p11-kit/GnuTLS czyta /etc/pki/anchors).
# Bez tego /etc/pki/anchors jest pusty -> GnuTLS widzi 0 certyfikatow,
# a TLS pada (np. bazaar nie laczy sie z Flathubem).
/usr/sbin/make-ca -g -f >/dev/null 2>&1 || true
# Odswiezaj tez automatycznie (timer jest domyslnie wylaczony).
systemctl enable update-pki.timer >/dev/null 2>&1 || true

