Fix typo in adjust-apache script.

This commit is contained in:
Ben Greear
2020-03-05 13:19:45 -08:00
parent ed5255de3e
commit 30980460a6

View File

@@ -69,7 +69,8 @@ if (-f "$fname") {
$blank = ($ln =~ /^\s*$/) ? 1 : 0;
next if ($blank && $was_blank);
next if ($ln =~/^$ip $MgrHostname$/);
next if ($ln =~ /^###-LF-HOSTAME-NEXT-###/);
next if ($ln =~ /^###-LF-HOSTAME-NEXT-###/); # old typo
next if ($ln =~ /^###-LF-HOSTNAME-NEXT-###/);
if ($ln =~ /\b($MgrHostname|lanforge-srv|$ip)\b/) {
print "Matching LINE $ln\n";
my @hunks = split(/\s+/, $ln);
@@ -83,7 +84,7 @@ if (-f "$fname") {
print "ok ln[$ln]\n";
push(@newlines, $ln);
}
push(@newlines, "###-LF-HOSTAME-NEXT-###");
push(@newlines, "###-LF-HOSTNAME-NEXT-###");
for my $ln (@newlines) {
print FILE "$ln\n";