From a9a5cde886e614f0749a270e5172780d9c7af509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 10 Oct 2017 10:39:29 +0200 Subject: [PATCH] :ambulance: fix(fusiondirectory-setup): Do no force lowercase for variable values Variable values were mistakenly converted to lowercase, which may cause problems in some cases like paths containing uppercase. closes #5588 --- contrib/bin/fusiondirectory-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/bin/fusiondirectory-setup b/contrib/bin/fusiondirectory-setup index 12fb1c6f0..bf6c0256e 100644 --- a/contrib/bin/fusiondirectory-setup +++ b/contrib/bin/fusiondirectory-setup @@ -1862,9 +1862,9 @@ die ("! You have to run this script as root\n") if ($<!=0); set_vars(); foreach my $arg ( @ARGV ) { - if (( lc($arg) =~ m/^--set-(.*)=(.*)$/ ) && (grep {$_ eq lc($1)} @vars_keys)) { + if (( $arg =~ m/^--set-(.*)=(.*)$/ ) && (grep {$_ eq lc($1)} @vars_keys)) { $vars{lc($1)} = $2; - print "Setting $1 to $2\n"; + print "Setting ".lc($1)." to $2\n"; set_vars(); } elsif ( $arg =~ m/^--set-config-(.*)=(.*)$/ ) { set_config_var($1, $2); -- GitLab