fix _UNAME and DOMAINS for the acme script conf

This commit is contained in:
dadel 2017-03-03 12:46:30 +01:00
parent 810424a13b
commit e66427b613
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
DOMAINS="{{ main_domain }}"
_UNAME="{{ second_domains }}"
DOMAINS="{{ domains }}"
_UNAME="{{ uname }}"
_DIR="{{ le_certificate_folder }}/{{ main_domain }}"
KEY="$_DIR/$_UNAME.key"

View File

@ -430,9 +430,9 @@ if step[6]:
shell_command("sudo mkdir -p '{}' 2>/dev/null".format(c['acme_folder']))
config_file = "{}/{}.conf".format(c['acme_folder'], c['domain_main'])
if generate_file(c['template_acme_conf'], config_file,
{"main_domain": c['domain_main'],
{"uname": c['domain_main'],
"le_certificate_folder": c['le_certificate_folder'],
"second_domains": ' '.join(domains)}) == False:
"domains": ' '.join(domains)}) == False:
print_error("Failed to generate ACME configuration file")
sys.exit(1)