projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6d5b5b3
)
lowercase (lc) hostname to get increments
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 6 Feb 2011 10:31:20 +0000
(11:31 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 6 Feb 2011 10:31:20 +0000
(11:31 +0100)
bin/BackupPC_ASA_SearchUpdate
patch
|
blob
|
history
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";
+ $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);