mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
certificate.py: drop legacy 000-acmechallenge.conf stuff
This commit is contained in:
parent
ae08698253
commit
9bcb7e0b9e
1 changed files with 1 additions and 7 deletions
|
@ -500,13 +500,7 @@ Subject: %s
|
|||
def _check_acme_challenge_configuration(domain):
|
||||
|
||||
domain_conf = "/etc/nginx/conf.d/%s.conf" % domain
|
||||
if "include /etc/nginx/conf.d/acme-challenge.conf.inc" in read_file(domain_conf):
|
||||
return True
|
||||
else:
|
||||
# This is for legacy setups which haven't updated their domain conf to
|
||||
# the new conf that include the acme snippet...
|
||||
legacy_acme_conf = "/etc/nginx/conf.d/%s.d/000-acmechallenge.conf" % domain
|
||||
return os.path.exists(legacy_acme_conf)
|
||||
return "include /etc/nginx/conf.d/acme-challenge.conf.inc" in read_file(domain_conf)
|
||||
|
||||
|
||||
def _fetch_and_enable_new_certificate(domain, staging=False, no_checks=False):
|
||||
|
|
Loading…
Add table
Reference in a new issue