Browse Source

fix _UNAME and DOMAINS for the acme script conf

master
Adel Daouzli 5 years ago
parent
commit
e66427b613
  1. 4
      acme_config_template
  2. 4
      vh_le.py

4
acme_config_template

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

4
vh_le.py

@ -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)

Loading…
Cancel
Save