[freeside-commits] freeside/FS/FS/part_export shellcommands.pm, 1.62, 1.63

Mark Wells mark at wavetail.420.am
Sat Jan 28 22:15:14 PST 2012


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv18763/FS/FS/part_export

Modified Files:
	shellcommands.pm 
Log Message:
don't try to run empty export commands on replace, #16143

Index: shellcommands.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/shellcommands.pm,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -w -d -r1.62 -r1.63
--- shellcommands.pm	13 Dec 2011 21:15:48 -0000	1.62
+++ shellcommands.pm	29 Jan 2012 06:15:12 -0000	1.63
@@ -353,6 +353,7 @@
   $locale = shell_quote $locale;
 
   my $command_string = eval(qq("$command"));
+
   my @ssh_cmd_args = (
     user          => $self->option('user') || 'root',
     host          => $self->machine,
@@ -377,6 +378,7 @@
 sub _export_replace {
   my($self, $new, $old ) = (shift, shift, shift);
   my $command = $self->option('usermod');
+  return '' if $command =~ /^\s*$/;
   my $stdin = $self->option('usermod_stdin');
   no strict 'vars';
   {



More information about the freeside-commits mailing list