Redirect errors in copy-trust-modifications script
Use update-ca-certificates for systemd service
This commit is contained in:
parent
b616663f62
commit
5f9c836053
@ -6,6 +6,8 @@
|
|||||||
- Remove unused CERTLIST variable in copy-trust-modifications
|
- Remove unused CERTLIST variable in copy-trust-modifications
|
||||||
- Fix syntax error in check_arg() function
|
- Fix syntax error in check_arg() function
|
||||||
- Correct STDERR redirection in multiple functions
|
- Correct STDERR redirection in multiple functions
|
||||||
|
- Redirect errors in copy-trust-modifications script
|
||||||
|
- Use update-ca-certificates for systemd service
|
||||||
1.2 - Use md5sum values for anchors.txt to detect p11-kit changes
|
1.2 - Use md5sum values for anchors.txt to detect p11-kit changes
|
||||||
- Added get_p11_label() function to get reliable label values
|
- Added get_p11_label() function to get reliable label values
|
||||||
- Added get_trust_values(), get_p11_trust(), and write_anchor()
|
- Added get_trust_values(), get_p11_trust(), and write_anchor()
|
||||||
|
@ -19,9 +19,12 @@ TEMPDIR=`mktemp -d`
|
|||||||
"${TEMPDIR}"
|
"${TEMPDIR}"
|
||||||
|
|
||||||
# Create a list of anchors that were not present or have been modified
|
# Create a list of anchors that were not present or have been modified
|
||||||
"${MD5SUM}" "${ANCHORDIR}"/*.pem > "${TEMPDIR}/anchors.md5sums"
|
"${MD5SUM}" "${ANCHORDIR}"/*.pem \
|
||||||
diff -au "${ANCHORLIST}" "${TEMPDIR}/anchors.md5sums" > "${TEMPDIR}/diff"
|
2> /dev/null > "${TEMPDIR}/anchors.md5sums"
|
||||||
grep "^+[a-z,0-9]" "${TEMPDIR}/diff" | cut -d " " -f 3 > "${TEMPDIR}/certlist"
|
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"
|
echo -e "\nThe following certificates have local modifications:\n"
|
||||||
|
|
||||||
|
@ -9,5 +9,5 @@ Wants=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/make-ca -g
|
ExecStart=/usr/bin/update-ca-certificates
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user