summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2009-02-22 20:12:13 +0000
committerivan <ivan>2009-02-22 20:12:13 +0000
commitcc1efca8aecadb466e772f3bd15517c001375869 (patch)
tree5c11e74ca4d83848d3a19106ca8be6b26c1d48fd /bin
parent027756090552715f79cd3a4de08ee73091ad99f0 (diff)
add exportnum to apache export files so they all get preserved in the case where you're using multiple apache exports to the same machine, RT#4901
Diffstat (limited to 'bin')
-rwxr-xr-xbin/apache.export5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/apache.export b/bin/apache.export
index da2d73c1c..82eb6d6b0 100755
--- a/bin/apache.export
+++ b/bin/apache.export
@@ -30,8 +30,9 @@ my $rsync = File::Rsync->new({
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};