Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion container-assets/cmd
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash
update-ca-trust

# Extract to a tmpdir to avoid: p11-kit: couldn't make directory writable: /etc/pki/ca-trust/extracted/pem/directory-hash: Unknown error 1
mkdir /tmp/extracted
update-ca-trust extract -o /tmp/extracted/
rm -rf /etc/pki/ca-trust/extracted/*
mv /tmp/extracted/* /etc/pki/ca-trust/extracted/
Comment on lines +6 to +7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to chmod anything after copying it over?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. After this, we don't try to write anything in /etc/pki.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was more thinking that whatever serves/uses the cert might need the certs to be a particular way (kind of like how things in ~/.ssh need specific perms set)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I'll double check the ownership, but the script appears to set the correct permissions on the directories. (That's why we're getting the error that prevents us from running it in the first place 😄 )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ownership is our_uid:root, but the file and directory permissions are correct.


exec /usr/sbin/httpd -D FOREGROUND -E /dev/stderr