summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-09 09:04:25 +0100
committerGitHub <noreply@github.com>2024-02-09 09:04:25 +0100
commite07b8b77930b92a09d1aac0b7de82aa0081ad3e5 (patch)
treede4a841da9c9d25b65f994712ddf2679716e94fd /src
parentc284140c240c771949bc0b441f7347262a1e50a0 (diff)
parent63d53a17274349fd68defdbf9f7ce16be63fc9b1 (diff)
downloadvyos-1x-e07b8b77930b92a09d1aac0b7de82aa0081ad3e5.tar.gz
vyos-1x-e07b8b77930b92a09d1aac0b7de82aa0081ad3e5.zip
Merge pull request #2975 from c-po/migrator-t5902
https: T5902: fix migration of virtual-host port
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/https/5-to-64
1 files changed, 1 insertions, 3 deletions
diff --git a/src/migration-scripts/https/5-to-6 b/src/migration-scripts/https/5-to-6
index 0090adccb..72e9e31f7 100755
--- a/src/migration-scripts/https/5-to-6
+++ b/src/migration-scripts/https/5-to-6
@@ -79,7 +79,7 @@ if config.exists(base + ['virtual-host']):
tmp = config.return_values(allow_path)
allow_client.extend(tmp)
- port_path = base + ['virtual-host', virtual_host, 'listen-port']
+ port_path = base + ['virtual-host', virtual_host, 'port']
if config.exists(port_path):
tmp = config.return_value(port_path)
listen_port.append(tmp)
@@ -99,8 +99,6 @@ if config.exists(base + ['virtual-host']):
for address in listen_address:
config.set(base + ['listen-address'], value=address, replace=False)
-
-
try:
with open(file_name, 'w') as f:
f.write(config.to_string())