Skip to content

Commit 7026502

Browse files
authored
Merge pull request #180 from cFire/pathfix
Fix for $live_path variable
2 parents 53ed8a9 + 37eac9e commit 7026502

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

manifests/certonly.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@
107107
}
108108

109109
$command = "${command_start}${command_domains}${command_end}"
110-
$live_path_domain = regsubst($domains[0], '^\*\.', '')
111-
$live_path = "${config_dir}/live/${live_path_domain}/cert.pem"
110+
111+
# certbot uses --cert-name to generate the file path
112+
$live_path_certname = regsubst($title, '^\*\.', '')
113+
$live_path = "${config_dir}/live/${live_path_certname}/cert.pem"
112114

113115
$execution_environment = [ "VENV_PATH=${letsencrypt::venv_path}", ] + $environment
114116
$verify_domains = join(unique($domains), ' ')

0 commit comments

Comments
 (0)