Skip to content

Commit

Permalink
app-misc/ca-certificates: drop duplicate symlink cleanup warning #575124
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Apr 22, 2016
1 parent 46d0844 commit b1c7373
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ pkg_postinst() {
"${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
fi

local c badcerts=0
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
ewarn "Broken symlink for a certificate at $c"
badcerts=1
done
if [ ${badcerts} -eq 1 ]; then
if [ -n "$(find -L "${EROOT}"etc/ssl/certs/ -type l)" ] ; then
ewarn "Removing the following broken symlinks:"
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
fi
Expand Down

0 comments on commit b1c7373

Please sign in to comment.