mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
3cea37be47
commit
6647131689
|
@ -268,9 +268,6 @@ def edit_nginx_ssl_conf(hostname, https_port, certdir, certfile, keyfile):
|
||||||
elif 'https://layers.openembedded.org' in line:
|
elif 'https://layers.openembedded.org' in line:
|
||||||
line = line.replace('https://layers.openembedded.org', 'https://%s:%s' % (hostname, https_port))
|
line = line.replace('https://layers.openembedded.org', 'https://%s:%s' % (hostname, https_port))
|
||||||
newlines.append(line + "\n")
|
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:
|
else:
|
||||||
line = line.replace('layers.openembedded.org', hostname)
|
line = line.replace('layers.openembedded.org', hostname)
|
||||||
newlines.append(line + "\n")
|
newlines.append(line + "\n")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user