summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-01-29 11:17:12 -0600
committerJohn Estabrook <jestabro@vyos.io>2024-01-29 11:22:38 -0600
commitf057075409b024a18ea8a39b5e128fcde988c00e (patch)
tree5f3ffbebf8d4054ea98942787c30759b94204094 /src/migration-scripts
parent801359c2ebc724bd3dd1d4352502747d813f2d17 (diff)
downloadvyos-1x-f057075409b024a18ea8a39b5e128fcde988c00e.tar.gz
vyos-1x-f057075409b024a18ea8a39b5e128fcde988c00e.zip
https: T6000: fix error in migration of path https certbot
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-xsrc/migration-scripts/https/5-to-64
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]