summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-30 10:42:36 +0000
committerGitHub <noreply@github.com>2024-01-30 10:42:36 +0000
commite79fd8fff6de28a603bc861253f01f544dd25797 (patch)
tree5f3ffbebf8d4054ea98942787c30759b94204094 /src
parent801359c2ebc724bd3dd1d4352502747d813f2d17 (diff)
parentf057075409b024a18ea8a39b5e128fcde988c00e (diff)
downloadvyos-1x-e79fd8fff6de28a603bc861253f01f544dd25797.tar.gz
vyos-1x-e79fd8fff6de28a603bc861253f01f544dd25797.zip
Merge pull request #2902 from jestabro/migration-certbot
https: T6000: fix error in migration of path https certbot
Diffstat (limited to 'src')
-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]