Skip to content

Commit 9d6d7c2

Browse files
Vladimir Kotalahornace
authored andcommitted
honor INDEXER_OPT in create_bare_config()
fixes #3474
1 parent 8b49f66 commit 9d6d7c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/start.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def project_syncer(logger, loglevel, uri, config_path, sync_period,
303303
time.sleep(sleep_seconds)
304304

305305

306-
def create_bare_config(logger):
306+
def create_bare_config(logger, extra_indexer_options=None):
307307
"""
308308
Create bare configuration file with a few basic settings.
309309
"""
@@ -318,6 +318,8 @@ def create_bare_config(logger):
318318
'-W', OPENGROK_CONFIG_FILE,
319319
'--noIndex']
320320

321+
if extra_indexer_options:
322+
indexer_options.extend(extra_indexer_options)
321323
indexer = Indexer(indexer_options,
322324
jar=OPENGROK_JAR,
323325
logger=logger, doprint=True)
@@ -384,7 +386,7 @@ def main():
384386
#
385387
if not os.path.exists(OPENGROK_CONFIG_FILE) or \
386388
os.path.getsize(OPENGROK_CONFIG_FILE) == 0:
387-
create_bare_config(logger)
389+
create_bare_config(logger, extra_indexer_options)
388390

389391
if sync_period > 0:
390392
if use_projects:

0 commit comments

Comments
 (0)