We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b936133 commit 70e4aafCopy full SHA for 70e4aaf
docker/start.py
@@ -458,15 +458,17 @@ def main():
458
out_file = None
459
with tempfile.NamedTemporaryFile(mode='w+', delete=False,
460
prefix='merged_config') as tmp_out:
461
+ out_file = tmp_out.name
462
merge_config_files(read_only_config_file, OPENGROK_CONFIG_FILE,
463
tmp_out, jar=OPENGROK_JAR, loglevel=log_level)
- out_file = tmp_out.name
464
465
if out_file and os.path.getsize(out_file) > 0:
466
shutil.move(tmp_out.name, OPENGROK_CONFIG_FILE)
467
else:
468
logger.warning('Failed to merge read-only configuration, '
469
'leaving the original in place')
470
+ if out_file:
471
+ os.remove(out_file)
472
473
if use_projects:
474
num_workers = get_num_from_env(logger, 'WORKERS',
0 commit comments