From 6647131689bafdafdefd8c62bd4548baf91f27eb Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 1 May 2019 13:44:11 +1200 Subject: [PATCH] dockersetup: remove redundant code to update non-HTTPS lines in nginx-ssl.conf The non-HTTPS configuration was removed some time ago from nginx-ssl.conf, and the code here that would have updated it didn't have access to http_port so it couldn't have worked anyway, so just remove it. Signed-off-by: Paul Eggleton --- dockersetup.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dockersetup.py b/dockersetup.py index 5ab712f..25e878b 100755 --- a/dockersetup.py +++ b/dockersetup.py @@ -268,9 +268,6 @@ def edit_nginx_ssl_conf(hostname, https_port, certdir, certfile, keyfile): elif 'https://layers.openembedded.org' in line: line = line.replace('https://layers.openembedded.org', 'https://%s:%s' % (hostname, https_port)) newlines.append(line + "\n") - elif 'http://layers.openembedded.org' in line: - line = line.replace('http://layers.openembedded.org', 'http://%s:%s' % (hostname, http_port)) - newlines.append(line + "\n") else: line = line.replace('layers.openembedded.org', hostname) newlines.append(line + "\n")