mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-20 22:23:10 +00:00
11 lines
312 B
Bash
Executable File
11 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
HAPROXY_CHAIN=/etc/ssl/private/open-balena.pem
|
|
mkdir -p "$(dirname "${HAPROXY_CHAIN}")"
|
|
(
|
|
echo "${BALENA_HAPROXY_CRT}" | base64 -d
|
|
echo "${BALENA_HAPROXY_KEY}" | base64 -d
|
|
echo "${BALENA_ROOT_CA}" | base64 -d
|
|
) > "${HAPROXY_CHAIN}"
|
|
exec haproxy -f /usr/local/etc/haproxy/haproxy.cfg |