summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-05-28 14:55:31 +0000
committerfukachan <fukachan>2002-05-28 14:55:31 +0000
commit95e9c12aecc83f66f468500d7ea6f079ad502851 (patch)
treedbda0d6cd97e89e08622b102090d2bbb49560c79
parent425a87414d7a0d921e63a5aa060d33ee5cc67be7 (diff)
downloadfml8-95e9c12aecc83f66f468500d7ea6f079ad502851.tar.gz
fml8-95e9c12aecc83f66f468500d7ea6f079ad502851.tar.bz2
fml8-95e9c12aecc83f66f468500d7ea6f079ad502851.zip
run "postmap virtual"
-rw-r--r--fml/lib/FML/Command/Admin/newml.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/fml/lib/FML/Command/Admin/newml.pm b/fml/lib/FML/Command/Admin/newml.pm
index dece3571..f27270c9 100644
--- a/fml/lib/FML/Command/Admin/newml.pm
+++ b/fml/lib/FML/Command/Admin/newml.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: newml.pm,v 1.36 2002/05/28 13:36:01 fukachan Exp $
+# $FML: newml.pm,v 1.37 2002/05/28 14:39:56 fukachan Exp $
#
package FML::Command::Admin::newml;
@@ -237,6 +237,7 @@ sub _install_postfix_virtual_map
my $config = $curproc->{ config };
my $ml_name = $config->{ ml_name };
my $ml_domain = $config->{ ml_domain };
+ my $postmap = $config->{ path_postmap };
my $virtual = $config->{ postfix_virtual_map_file };
my $src = File::Spec->catfile($template_dir, 'postfix_virtual');
@@ -244,6 +245,8 @@ sub _install_postfix_virtual_map
print STDERR "updating $virtual\n";
_install($src, $dst, $params);
append($dst, $virtual);
+ unlink $dst;
+ system "$postmap $virtual";
}