projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lowercase (lc) hostname to get increments
[BackupPC.git]
/
bin
/
BackupPC_ASA_SearchUpdate
diff --git
a/bin/BackupPC_ASA_SearchUpdate
b/bin/BackupPC_ASA_SearchUpdate
index
de465b7
..
4d46a4c
100755
(executable)
--- a/
bin/BackupPC_ASA_SearchUpdate
+++ b/
bin/BackupPC_ASA_SearchUpdate
@@
-312,8
+312,9
@@
my $host_nr = 0;
foreach my $host_key (@hosts) {
my $hostname = $hosts->{$host_key}->{'host'} || die "can't find host for $host_key";
foreach my $host_key (@hosts) {
my $hostname = $hosts->{$host_key}->{'host'} || die "can't find host for $host_key";
+ $hostname = lc $hostname;
- next if $opt->host && ! grep { m/^$hostname$/ } @{ $opt->host };
+ next if $opt->host && ! grep { m/^$hostname$/
i
} @{ $opt->host };
$sth->{hosts_by_name}->execute($hostname);
$sth->{hosts_by_name}->execute($hostname);