Skip to content

Commit

Permalink
Allow BDII_HOSTNAME configuration and default to localhost (#22)
Browse files Browse the repository at this point in the history
Fix #19
  • Loading branch information
andrea-manzi authored Sep 23, 2020
1 parent e798589 commit 77429a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/bdii-update
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def get_config(config):
if 'BDII_PID_FILE' not in config:
config['BDII_PID_FILE'] = "%s/bdii-update.pid" % config['BDII_RUN_DIR']

if 'BDII_HOSTNAME' not in config:
config['BDII_HOSTNAME'] = 'localhost'

for parameter in ['BDII_LOG_FILE', 'BDII_LOG_LEVEL', 'BDII_LDIF_DIR',
'BDII_PROVIDER_DIR', 'BDII_PLUGIN_DIR',
'BDII_READ_TIMEOUT']:
Expand Down Expand Up @@ -157,7 +160,6 @@ def get_config(config):
config['BDII_BREATHE_TIME'] = float(config['BDII_BREATHE_TIME'])
config['BDII_ARCHIVE_SIZE'] = int(config['BDII_ARCHIVE_SIZE'])
config['BDII_DELETE_DELAY'] = int(config['BDII_DELETE_DELAY'])
config['BDII_HOSTNAME'] = 'localhost'

return config

Expand Down

0 comments on commit 77429a2

Please sign in to comment.