diff --git a/scripts/functions.pm b/scripts/functions.pm index dbc4210..99d1ee7 100644 --- a/scripts/functions.pm +++ b/scripts/functions.pm @@ -215,7 +215,7 @@ sub update_client open(FP, "$conf/bareos-dir.conf") or die "can't open source $!"; open(NEW, ">$tmp/bareos-dir.conf.$$") or die "can't open dest $!"; while (my $l = ) { - if (!$in_client && $l =~ /^Client {/) { + if (!$in_client && $l =~ /^Client \{/) { $in_client=1; } @@ -396,7 +396,7 @@ sub add_attribute next; } - if ($l =~ /^(\w+) {/) { + if ($l =~ /^(\w+) \{/) { $cur_obj = $1; $done=0; }