projects
/
BackupPC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62919ed
)
correctly lc $host all over the place
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 6 Feb 2011 12:27:07 +0000
(13:27 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 6 Feb 2011 12:27:07 +0000
(13:27 +0100)
bin/BackupPC_ASA_ArchiveStart
patch
|
blob
|
history
bin/BackupPC_ASA_PostArchive_Update
patch
|
blob
|
history
bin/BackupPC_ASA_SearchUpdate
patch
|
blob
|
history
lib/BackupPC/Search.pm
patch
|
blob
|
history
diff --git
a/bin/BackupPC_ASA_ArchiveStart
b/bin/BackupPC_ASA_ArchiveStart
index
f91a60f
..
da3ef77
100755
(executable)
--- a/
bin/BackupPC_ASA_ArchiveStart
+++ b/
bin/BackupPC_ASA_ArchiveStart
@@
-100,6
+100,7
@@
my(@HostList, @BackupList);
my $host_nums;
foreach my $host ( keys %$Hosts ) {
my $host_nums;
foreach my $host ( keys %$Hosts ) {
+ $host = lc $host;
my @backups = $bpc->BackupInfoRead($host);
if ( !@backups ) {
warn "$0: host $host doesn't have any backups... skipping\n";
my @backups = $bpc->BackupInfoRead($host);
if ( !@backups ) {
warn "$0: host $host doesn't have any backups... skipping\n";
diff --git
a/bin/BackupPC_ASA_PostArchive_Update
b/bin/BackupPC_ASA_PostArchive_Update
index
1dea094
..
e70bfb1
100755
(executable)
--- a/
bin/BackupPC_ASA_PostArchive_Update
+++ b/
bin/BackupPC_ASA_PostArchive_Update
@@
-375,7
+375,7
@@
sub check_archive {
foreach ( 0 .. $#{ $opt->host } ) {
foreach ( 0 .. $#{ $opt->host } ) {
- my $host = $opt->host->[$_];
+ my $host =
lc
$opt->host->[$_];
my $num = $opt->num->[$_];
if ( ! $opt->ok ) {
my $num = $opt->num->[$_];
if ( ! $opt->ok ) {
diff --git
a/bin/BackupPC_ASA_SearchUpdate
b/bin/BackupPC_ASA_SearchUpdate
index
4d46a4c
..
ba499f9
100755
(executable)
--- a/
bin/BackupPC_ASA_SearchUpdate
+++ b/
bin/BackupPC_ASA_SearchUpdate
@@
-320,7
+320,7
@@
foreach my $host_key (@hosts) {
unless (($hostID) = $sth->{hosts_by_name}->fetchrow_array()) {
$sth->{insert_hosts}->execute(
unless (($hostID) = $sth->{hosts_by_name}->fetchrow_array()) {
$sth->{insert_hosts}->execute(
- $host
s->{$host_key}->{'host'}
,
+ $host
name
,
$hosts->{$host_key}->{'ip'}
);
$hosts->{$host_key}->{'ip'}
);
diff --git
a/lib/BackupPC/Search.pm
b/lib/BackupPC/Search.pm
index
cbd8c84
..
38837c0
100644
(file)
--- a/
lib/BackupPC/Search.pm
+++ b/
lib/BackupPC/Search.pm
@@
-32,7
+32,7
@@
sub search_module {
if ( $@ ) {
warn "ERROR: $search_module: $!";
} else {
if ( $@ ) {
warn "ERROR: $search_module: $!";
} else {
- warn "# using $search_module for full-text search";
+
#
warn "# using $search_module for full-text search";
}
return $search_module->new( %Conf );
}
return $search_module->new( %Conf );