From 187ab67a8442dcc19ca04584506036e43d98a73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Wed, 30 Oct 2019 13:25:16 +0100 Subject: [PATCH] Read configuration file from ARGV[0] if present --- mlmmj-ldap-sync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlmmj-ldap-sync b/mlmmj-ldap-sync index 3c98a36..baa3372 100755 --- a/mlmmj-ldap-sync +++ b/mlmmj-ldap-sync @@ -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']