Read configuration file from ARGV[0] if present
This commit is contained in:
parent
6d4f395a0f
commit
187ab67a84
1 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,8 @@ end
|
|||
|
||||
def main
|
||||
# Parse configuration, bind to LDAP server
|
||||
@configuration = read_configuration(@configuration_file)
|
||||
configuration_file = ARGV[0] ? ARGV[0] : @configuration_file
|
||||
@configuration = read_configuration(configuration_file)
|
||||
conn = connect_ldap
|
||||
|
||||
domain = @configuration['domain']
|
||||
|
|
Loading…
Reference in a new issue