freeside/bin postfix.export,1.1.2.2,1.1.2.3
ivan
ivan at pouncequick.420.am
Mon May 10 04:11:01 PDT 2004
Update of /home/cvs/cvsroot/freeside/bin
In directory pouncequick:/tmp/cvs-serv16058/bin
Modified Files:
Tag: FREESIDE_1_4_BRANCH
postfix.export
Log Message:
make postfix export commands configrable
Index: postfix.export
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/postfix.export,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- postfix.export 13 Feb 2004 18:58:48 -0000 1.1.2.2
+++ postfix.export 10 May 2004 11:10:59 -0000 1.1.2.3
@@ -99,7 +99,7 @@
} ) or die "rsync to $machine failed: ". join(" / ", $rsync->err);
# warn $rsync->out;
- ssh("$user\@$machine", "newaliases");
+ ssh("$user\@$machine", $export->option('newaliases') || 'newaliases');
# ssh("$user\@$machine", "postfix reload");
$rsync->exec( {
@@ -107,8 +107,9 @@
dest => "$user\@$machine:". $export->option('virtual'),
} ) or die "rsync to $machine failed: ". join(" / ", $rsync->err);
# warn $rsync->out;
- ssh("$user\@$machine", "postmap hash:/etc/postfix/virtual");
- ssh("$user\@$machine", "postfix reload");
+ ssh("$user\@$machine", $export->option('postmap')
+ || 'postmap hash:/etc/postfix/virtual');
+ ssh("$user\@$machine", $export->option('reload') || 'postfix reload');
}
More information about the freeside-commits
mailing list