Skip to content

Commit

Permalink
forgot to copy this back to the dev/centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
jettero committed Mar 18, 2020
1 parent 8fafe78 commit 5e4de02
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions pkg/dev/centos7/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,32 @@ if [ -f /data/hubble_buildinfo ]; then
cat /data/hubble_buildinfo >> /hubble_build/hubblestack/__init__.py
fi 2>/dev/null

cat > /data/pre_packaged_certificates.py << EOF
ca_crt = list()
public_crt = list()
EOF
do_pkg_crts=0
if [ -f /data/certs/ca-root.crt ]; then
echo "ca_crt.append('''$(< /data/certs/ca-root.crt)''')" \
>> /data/pre_packaged_certificates.py
for item in /data/certs/int*.crt; do
if [ -f "$item" ]
then echo "ca_crt.append('''$(< "$item")''')" \
>> /data/pre_packaged_certificates.py
fi
done
do_pkg_crts=$(( do_pkg_crts + 1 ))
fi
for item in /data/certs/{pub,sign}*.crt; do
if [ -f "$item" ]
then echo "public_crt.append('''$(< "$item")''')" \
>> /data/pre_packaged_certificates.py
fi
do_pkg_crts=$(( do_pkg_crts + 1 ))
done
if [ $do_pkg_crts -gt 0 ]
then cp /data/pre_packaged_certificates.py /hubble_build/hubblestack
fi

cd /hubble_build

Expand Down

0 comments on commit 5e4de02

Please sign in to comment.