summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2002-08-24 06:41:50 +0000
committerivan <ivan>2002-08-24 06:41:50 +0000
commit22abdc37d4ec5699b62d295dc7ec1e41a8daf23b (patch)
tree32d897a2f255dd0a56a7b92bfad4a54475b732d6 /FS
parent96fd4cf172f2b9fbdd00f7b7fe7a7797132b88c2 (diff)
- depend on Net::SSH 0.07, for OpenSSH -T fix
- no strict 'vars'; when necessary
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/part_export/domain_shellcommands.pm4
-rw-r--r--FS/FS/part_export/shellcommands.pm4
-rw-r--r--FS/FS/part_export/www_shellcommands.pm4
3 files changed, 9 insertions, 3 deletions
diff --git a/FS/FS/part_export/domain_shellcommands.pm b/FS/FS/part_export/domain_shellcommands.pm
index d2f55e5ad..5b3cd5d79 100644
--- a/FS/FS/part_export/domain_shellcommands.pm
+++ b/FS/FS/part_export/domain_shellcommands.pm
@@ -23,6 +23,7 @@ sub _export_command {
my $command = $self->option($action);
#set variable for the command
+ no strict 'vars';
{
no strict 'refs';
${$_} = $svc_domain->getfield($_) foreach $svc_domain->fields;
@@ -53,6 +54,7 @@ sub _export_replace {
my $command = $self->option('usermod');
#set variable for the command
+ no strict 'vars';
{
no strict 'refs';
${"old_$_"} = $old->getfield($_) foreach $old->fields;
@@ -100,7 +102,7 @@ sub shellcommands_queue {
}
sub ssh_cmd { #subroutine, not method
- use Net::SSH '0.06';
+ use Net::SSH '0.07';
&Net::SSH::ssh_cmd( { @_ } );
}
diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm
index e4005761b..869544da5 100644
--- a/FS/FS/part_export/shellcommands.pm
+++ b/FS/FS/part_export/shellcommands.pm
@@ -24,6 +24,7 @@ sub _export_command {
my ( $self, $action, $svc_acct) = (shift, shift, shift);
my $command = $self->option($action);
my $stdin = $self->option($action."_stdin");
+ no strict 'vars';
{
no strict 'refs';
${$_} = $svc_acct->getfield($_) foreach $svc_acct->fields;
@@ -44,6 +45,7 @@ sub _export_replace {
my($self, $new, $old ) = (shift, shift, shift);
my $command = $self->option('usermod');
my $stdin = $self->option('usermod_stdin');
+ no strict 'vars';
{
no strict 'refs';
${"old_$_"} = $old->getfield($_) foreach $old->fields;
@@ -72,7 +74,7 @@ sub shellcommands_queue {
}
sub ssh_cmd { #subroutine, not method
- use Net::SSH '0.06';
+ use Net::SSH '0.07';
&Net::SSH::ssh_cmd( { @_ } );
}
diff --git a/FS/FS/part_export/www_shellcommands.pm b/FS/FS/part_export/www_shellcommands.pm
index 84c162761..e5b95dc1f 100644
--- a/FS/FS/part_export/www_shellcommands.pm
+++ b/FS/FS/part_export/www_shellcommands.pm
@@ -23,6 +23,7 @@ sub _export_command {
my $command = $self->option($action);
#set variable for the command
+ no strict 'vars';
{
no strict 'refs';
${$_} = $svc_www->getfield($_) foreach $svc_www->fields;
@@ -52,6 +53,7 @@ sub _export_replace {
my $command = $self->option('usermod');
#set variable for the command
+ no strict 'vars';
{
no strict 'refs';
${"old_$_"} = $old->getfield($_) foreach $old->fields;
@@ -99,7 +101,7 @@ sub shellcommands_queue {
}
sub ssh_cmd { #subroutine, not method
- use Net::SSH '0.06';
+ use Net::SSH '0.07';
&Net::SSH::ssh_cmd( { @_ } );
}