Browse Source

fix _UNAME and DOMAINS for the acme script conf

master
Adel Daouzli 4 years ago
parent
commit
e66427b613
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      acme_config_template
  2. +2
    -2
      vh_le.py

+ 2
- 2
acme_config_template 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"


+ 2
- 2
vh_le.py 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)


Loading…
Cancel
Save