mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 14:01:43 +01:00
Fix permissions on fake root cert that is injected for login testing. It was getting 0600
Review URL: http://codereview.chromium.org/1626007
This commit is contained in:
parent
e7a04adc83
commit
b9f7230dcd
@ -15,5 +15,7 @@ cat "${CERT_DIR}/${CERT_NAME}.key" > "${ROOT_FS_DIR}/etc/${CERT_NAME}.key"
|
||||
# Sadly, our fake cert HAS to be first in this file.
|
||||
TMPFILE=$(mktemp)
|
||||
CERT_FILE="${ROOT_FS_DIR}/etc/login_trust_root.pem"
|
||||
PERMS=$(stat --printf="%a" "${CERT_FILE}")
|
||||
cat "${CERT_DIR}/${CERT_NAME}.pem" "${CERT_FILE}" > "${TMPFILE}"
|
||||
mv -f "${TMPFILE}" "${CERT_FILE}"
|
||||
chmod "${PERMS}" "${CERT_FILE}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user