freeside/bin postfix.export,1.2,1.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-serv16052/bin

Modified Files:
	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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- postfix.export	13 Feb 2004 18:58:47 -0000	1.2
+++ postfix.export	10 May 2004 11:10:58 -0000	1.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