File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
3235update-ca-trust extract --output /etc/pki/ca-trust/extracted
You can’t perform that action at this time.
0 commit comments