diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-09 09:07:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 09:07:54 +0100 |
commit | 535d28871b76d2421030fc775e4e8b834bf3ecb0 (patch) | |
tree | d00f3ae991a5c65cd826996878ffb892db913493 /src/migration-scripts | |
parent | e6f914429daadd2c812ef8cbe051321a8a3e5e60 (diff) | |
parent | 32de8b3234f512d1555ad569d27ddecff6e18922 (diff) | |
download | vyos-1x-535d28871b76d2421030fc775e4e8b834bf3ecb0.tar.gz vyos-1x-535d28871b76d2421030fc775e4e8b834bf3ecb0.zip |
Merge pull request #2976 from vyos/mergify/bp/sagitta/pr-2975
https: T5902: fix migration of virtual-host port (backport #2975)
Diffstat (limited to 'src/migration-scripts')
-rwxr-xr-x | src/migration-scripts/https/5-to-6 | 4 |
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()) |