diff options
author | John Estabrook <jestabro@vyos.io> | 2024-01-29 11:17:12 -0600 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-30 10:43:17 +0000 |
commit | 1e97bee82294c2a63ff2c17ad9206aea99fe9061 (patch) | |
tree | 8b33cff53e39ffc18a1c9d3564aa5d448c2376db /src | |
parent | b9005b289ef00841a195705ff7c068cd3b85396e (diff) | |
download | vyos-1x-1e97bee82294c2a63ff2c17ad9206aea99fe9061.tar.gz vyos-1x-1e97bee82294c2a63ff2c17ad9206aea99fe9061.zip |
https: T6000: fix error in migration of path https certbot
(cherry picked from commit f057075409b024a18ea8a39b5e128fcde988c00e)
Diffstat (limited to 'src')
-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] |