diff --git a/recipes/alpine/templates/conf/matchbox/init.d/matchbox.pktpl.hcl b/recipes/alpine/templates/conf/matchbox/init.d/matchbox.pktpl.hcl index 6f47f95..6652098 100644 --- a/recipes/alpine/templates/conf/matchbox/init.d/matchbox.pktpl.hcl +++ b/recipes/alpine/templates/conf/matchbox/init.d/matchbox.pktpl.hcl @@ -17,7 +17,7 @@ start_pre() { /run/$RC_SVCNAME /var/log/$RC_SVCNAME if [ ! -f "/etc/matchbox/server.crt" ]; then cd /root/tls - export SAN="DNS.1:${Vars.MatchBox.URL},IP.1:${Vars.ETH0.IP}" + export SAN="DNS.1:${Vars.MatchBox.Hostname},IP.1:${Vars.ETH0.IP}" ./cert-gen mkdir -p /etc/matchbox cp ca.crt server.crt server.key /etc/matchbox