Skip to content

Commit

Permalink
Merge pull request #2904 from vyos/mergify/bp/sagitta/pr-2902
Browse files Browse the repository at this point in the history
https: T6000: fix error in migration of path https certbot (backport #2902)
  • Loading branch information
sever-sever committed Jan 30, 2024
2 parents b9005b2 + 1e97bee commit 29045df
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 29045df

Please sign in to comment.