Redirect errors in copy-trust-modifications script

Use update-ca-certificates for systemd service
This commit is contained in:
DJ Lucas
2019-04-12 23:11:01 -05:00
parent b616663f62
commit 5f9c836053
3 changed files with 9 additions and 4 deletions

View File

@@ -19,9 +19,12 @@ TEMPDIR=`mktemp -d`
"${TEMPDIR}"
# Create a list of anchors that were not present or have been modified
"${MD5SUM}" "${ANCHORDIR}"/*.pem > "${TEMPDIR}/anchors.md5sums"
diff -au "${ANCHORLIST}" "${TEMPDIR}/anchors.md5sums" > "${TEMPDIR}/diff"
grep "^+[a-z,0-9]" "${TEMPDIR}/diff" | cut -d " " -f 3 > "${TEMPDIR}/certlist"
"${MD5SUM}" "${ANCHORDIR}"/*.pem \
2> /dev/null > "${TEMPDIR}/anchors.md5sums"
diff -au "${ANCHORLIST}" "${TEMPDIR}/anchors.md5sums" \
2> /dev/null > "${TEMPDIR}/diff"
grep "^+[a-z,0-9]" "${TEMPDIR}/diff" | cut -d " " -f 3 \
2> /dev/null > "${TEMPDIR}/certlist"
echo -e "\nThe following certificates have local modifications:\n"