compatible with mason 1.1! closes: bug#492
[freeside.git] / bin / apache.export
index 6142c92..399fb03 100755 (executable)
@@ -43,7 +43,7 @@ foreach my $export ( @exports ) {
   }
 
   my $user = $export->option('user');
-  my $httpd_conf = $export->option('httpd_conf')
+  my $httpd_conf = $export->option('httpd_conf');
 
   $rsync->exec( {
     src       => $file,
@@ -51,11 +51,11 @@ foreach my $export ( @exports ) {
   } ) or die "rsync to $machine failed: ". join(" / ", $rsync->err);
  # warn $rsync->out;
 
-  ssh("root\@$machine", 'ndc reload');
+  ssh("root\@$machine", 'apachectl graceful');
 
 }
 
-close NAMED_CONF;
+close HTTPD_CONF;
 
 # -----