add exportnum to apache export files so they all get preserved in the case where...
authorivan <ivan>
Sun, 22 Feb 2009 20:12:13 +0000 (20:12 +0000)
committerivan <ivan>
Sun, 22 Feb 2009 20:12:13 +0000 (20:12 +0000)
bin/apache.export

index da2d73c..82eb6d6 100755 (executable)
@@ -30,8 +30,9 @@ my $rsync = File::Rsync->new({
 
 foreach my $export ( @exports ) {
 
 
 foreach my $export ( @exports ) {
 
-  my $machine = $export->machine;
-  my $file = "$spooldir/$machine.conf";
+  my $machine   = $export->machine;
+  my $exportnum = $export->exportnum;
+  my $file = "$spooldir/$machine.exportnum$exportnum.conf";
 
   warn "exporting apache configuration for $machine to $file\n"
     if $opt{d};
 
   warn "exporting apache configuration for $machine to $file\n"
     if $opt{d};