diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-30 12:46:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 12:46:31 +0200 |
commit | 29045dff3845dbc26d8a0e16f44dcabc4a96bc53 (patch) | |
tree | 8b33cff53e39ffc18a1c9d3564aa5d448c2376db | |
parent | b9005b289ef00841a195705ff7c068cd3b85396e (diff) | |
parent | 1e97bee82294c2a63ff2c17ad9206aea99fe9061 (diff) | |
download | vyos-1x-29045dff3845dbc26d8a0e16f44dcabc4a96bc53.tar.gz vyos-1x-29045dff3845dbc26d8a0e16f44dcabc4a96bc53.zip |
Merge pull request #2904 from vyos/mergify/bp/sagitta/pr-2902
https: T6000: fix error in migration of path https certbot (backport #2902)
-rwxr-xr-x | src/migration-scripts/https/5-to-6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/migration-scripts/https/5-to-6 b/src/migration-scripts/https/5-to-6 index 6d6efd32c..0090adccb 100755 --- a/src/migration-scripts/https/5-to-6 +++ b/src/migration-scripts/https/5-to-6 @@ -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] |