Skip to content

Commit

Permalink
fix again devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosantossyngenta committed Feb 28, 2024
1 parent 04afec9 commit 732afce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 44 deletions.
11 changes: 5 additions & 6 deletions .devcontainer/init_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
INIT_FILE="$HOME/.devcontainer_initiated"

update_cas(){
mkdir -p /tmp/certs
sudo bash -c "
openssl s_client -showcerts -verify 5 -connect github.com:443 < /dev/null |
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/{ if(/BEGIN CERTIFICATE/){a++}; out=\"/usr/local/share/ca-certificates/cert\"a\".crt\"; print >out}'
openssl s_client -showcerts -verify 5 -connect github.com:443 < /dev/null | \
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/{ if(/BEGIN CERTIFICATE/){a++}; out="/tmp/certs/cert"a".crt"; print >out}'

sudo cp /tmp/certs/*.crt /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
update-ca-certificates
"
}

if [[ ! -f "$INIT_FILE" ]]; then
Expand Down
38 changes: 0 additions & 38 deletions .devcontainer/install_gnupg22.sh

This file was deleted.

0 comments on commit 732afce

Please sign in to comment.