Skip to content

Commit

Permalink
fix: fixed script in certificates part
Browse files Browse the repository at this point in the history
feat: added openssl
  • Loading branch information
bencekov committed Oct 24, 2023
1 parent ab94891 commit 8402864
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ parts:
util:
plugin: nil
stage-packages:
# This is needed to pipe the stdout/stderr to a file for log forwarding
# This is needed to pipe the stdout/stderr to a file for log forwarding and to update certificates
- coreutils
prime:
- usr/bin/tee

openssl:
plugin: nil
stage-packages:
# This is needed to update certificates
- openssl

shell:
plugin: nil
Expand All @@ -39,6 +43,8 @@ parts:
mkdir -p $CRAFT_PART_INSTALL/etc/ssl/certs
mkdir -p $CRAFT_PART_INSTALL/usr/share/ca-certificates/mozilla/
mkdir -p $CRAFT_PART_INSTALL/usr/sbin
mkdir -p $CRAFT_PART_INSTALL/tmp
touch $CRAFT_PART_INSTALL/etc/ssl/certs/ca-certificates.crt
touch $CRAFT_PART_INSTALL/etc/ca-certificates.conf
for cert in /usr/share/ca-certificates/mozilla/* ; do
Expand All @@ -47,6 +53,8 @@ parts:
done
cp /usr/share/ca-certificates/mozilla/* $CRAFT_PART_INSTALL/usr/share/ca-certificates/mozilla
cp /usr/sbin/update-ca-certificates $CRAFT_PART_INSTALL/usr/sbin/update-ca-certificates
chmod 777 $CRAFT_PART_INSTALL/tmp
chmod -R 777 $CRAFT_PART_INSTALL/etc/ssl/certs
sed:
plugin: nil
Expand Down

0 comments on commit 8402864

Please sign in to comment.