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 <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-05-01 13:44:11 +12:00
parent 3cea37be47
commit 6647131689

View File

@ -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")