Skip to content

Commit

Permalink
Merge pull request #2902 from jestabro/migration-certbot
Browse files Browse the repository at this point in the history
https: T6000: fix error in migration of path https certbot
  • Loading branch information
c-po committed Jan 30, 2024
2 parents 801359c + f057075 commit e79fd8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/migration-scripts/https/5-to-6
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ if not config.exists(base):
# Nothing to do
sys.exit(0)

if config.exists(base + ['certificates']):
if config.exists(base + ['certificates', 'certbot']):
# both domain-name and email must be set on CLI - ensured by previous verify()
domain_names = config.return_values(base + ['certificates', 'certbot', 'domain-name'])
email = config.return_value(base + ['certificates', 'certbot', 'email'])
config.delete(base + ['certificates'])
config.delete(base + ['certificates', 'certbot'])

# Set default certname based on domain-name
cert_name = 'https-' + domain_names[0].split('.')[0]
Expand Down

0 comments on commit e79fd8f

Please sign in to comment.