Skip to content

Commit ed4480a

Browse files
committed
minor changes to the way pre_packaged_certificates builds
1 parent cd778bc commit ed4480a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/centos7/entrypoint.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,21 @@ do_pkg_crts=0
3333
if [ -f /data/certs/ca-root.crt ]; then
3434
echo "ca_crt.append('''$(< /data/certs/ca-root.crt)''')" \
3535
>> /data/pre_packaged_certificates.py
36+
do_pkg_crts=$(( do_pkg_crts + 1 ))
3637
for item in /data/certs/int*.crt; do
3738
if [ -f "$item" ]
3839
then echo "ca_crt.append('''$(< "$item")''')" \
3940
>> /data/pre_packaged_certificates.py
41+
do_pkg_crts=$(( do_pkg_crts + 1 ))
4042
fi
4143
done
42-
do_pkg_crts=$(( do_pkg_crts + 1 ))
4344
fi
4445
for item in /data/certs/{pub,sign}*.crt; do
4546
if [ -f "$item" ]
4647
then echo "public_crt.append('''$(< "$item")''')" \
4748
>> /data/pre_packaged_certificates.py
49+
do_pkg_crts=$(( do_pkg_crts + 1 ))
4850
fi
49-
do_pkg_crts=$(( do_pkg_crts + 1 ))
5051
done
5152
if [ $do_pkg_crts -gt 0 ]
5253
then cp /data/pre_packaged_certificates.py /hubble_build/hubblestack

0 commit comments

Comments
 (0)