diff -r 5f79f3885ccc -r 8415791a8363 debian/postinst --- a/debian/postinst Fri Dec 29 13:33:09 2006 +0000 +++ b/debian/postinst Mon Nov 09 12:38:35 2015 +0100 @@ -19,7 +19,7 @@ CONF=/etc/ca-certificates.conf DIR=/usr/share/ca-certificates -CRT=schlittermann-ca.crt +CRTS=$DIR/schlittermann-ca* hash() { openssl x509 -noout -in "$1" -hash; } @@ -28,16 +28,20 @@ # zuerst mal gucken, ob's nicht zufällig schon in /etc/ssl/certs # mit rumliegt von früher - HASH=`hash $DIR/$CRT` - echo "$DIR/$CRT: $HASH" + for CRT in $CRTS; do + CRT=$(basename $CRT) + HASH=`hash $DIR/$CRT` + echo "$DIR/$CRT: $HASH" - for p in /etc/ssl/certs/*.crt; do - test -e "$p" || { rm -f "$p"; continue; } - test "$HASH" = `hash "$p"` || continue - test -L "$p" || { rm -v "$p"; continue; } - test `readlink "$p"` = "$DIR/$CRT" || { rm "$p"; continue; } + for p in /etc/ssl/certs/*.crt; do + test -e "$p" || { rm -f "$p"; continue; } + test "$HASH" = `hash "$p"` || continue + test -L "$p" || { rm -v "$p"; continue; } + test `readlink "$p"` = "$DIR/$CRT" || { rm "$p"; continue; } + done + grep -q "$CRT" "$CONF" || echo "$CRT" >> "$CONF" done - grep -q "$CRT" "$CONF" || echo "$CRT" >> "$CONF" + update-ca-certificates ;;