dockersetup: do not set site name if a database file is specified

If a database file is specified we probably want to stick with whatever
site name is defined in there and not overwrite it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-06-18 16:23:41 +12:00
parent f527692c7c
commit d39929b405

View File

@ -708,6 +708,7 @@ if return_code != 0:
sys.exit(1)
if not updatemode:
if not dbfile:
## Set site name
return_code = subprocess.call(['docker-compose', 'run', '--rm', 'layersapp', '/opt/layerindex/layerindex/tools/site_name.py', hostname, 'OpenEmbedded Layer Index'], shell=False)