Build docker image and push to registry.bitdeals.org / main-build-job (push) Successful in 1m33s
13 lines
486 B
Bash
13 lines
486 B
Bash
#!/bin/sh
|
|
|
|
# Start transaction
|
|
echo -e "set ssl cert /usr/local/etc/haproxy/certificates/site.pem <<\n$(cat /etc/certificates/site.pem)\n" \
|
|
| socat - tcp-connect:haproxy:9999,retry=30,interval=2,connect-timeout=5
|
|
|
|
# Commit transaction
|
|
echo "commit ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -
|
|
|
|
# Show certification info (not essential)
|
|
echo "show ssl cert /usr/local/etc/haproxy/certificates/site.pem" | socat tcp-connect:haproxy:9999 -
|
|
|