Skip to content

Commit

Permalink
ca-certificates: Generate /etc/ssl/certs/ca-certificates.crt
Browse files Browse the repository at this point in the history
  • Loading branch information
woky committed Jun 14, 2022
1 parent 11b5de4 commit cbe713d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions slices/ca-certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ package: ca-certificates
slices:
data:
contents:
/etc/ssl/certs/:
/usr/share/ca-certificates/mozilla/*.crt:
/etc/ssl/certs/ca-certificates.crt: {text: FIXME, mutable: true}
/usr/share/ca-certificates/mozilla/: {until: mutate}
/usr/share/ca-certificates/mozilla/*: {until: mutate}
mutate: |
certs_dir = "/usr/share/ca-certificates/mozilla/"
certs = [ content.read(certs_dir + path) for path in content.list(certs_dir) ]
content.write("/etc/ssl/certs/ca-certificates.crt", "".join(certs))

0 comments on commit cbe713d

Please sign in to comment.