Skip to content

Commit 0cdb846

Browse files
committed
wip
1 parent 1b9516d commit 0cdb846

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

image/rhel/static-bin/import-additional-cas

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ copy_existing /etc/pki/injected-ca-trust
2525

2626
# update-ca-trust runs `chmod u-w "$DEST/pem/directory-hash"` at the end. Add
2727
# it back before running update-ca-trust again. Currently only relevant for
28-
# sensor since its init-container and main server both run this script.
29-
[ -d "/etc/pki/ca-trust/extracted/pem/directory-hash" ] && chmod u+w "/etc/pki/ca-trust/extracted/pem/directory-hash"
30-
# update-ca-trust will create the necessary directories if the `--output` flag
31-
# is used.
28+
# sensor since its init-container and main service both run this script.
29+
if [ -d "/etc/pki/ca-trust/extracted/pem/directory-hash" ]; then
30+
chmod u+w /etc/pki/ca-trust/extracted/pem/directory-hash
31+
fi
32+
33+
# Though /etc/pki/ca-trust/extracted is the default output, update-ca-trust
34+
# will create the necessary directories if the `--output` flag is used.
3235
update-ca-trust extract --output /etc/pki/ca-trust/extracted

0 commit comments

Comments
 (0)