diff options
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/part_export/textradius.pm | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/FS/FS/part_export/textradius.pm b/FS/FS/part_export/textradius.pm index 74807878b..c96bcfc48 100644 --- a/FS/FS/part_export/textradius.pm +++ b/FS/FS/part_export/textradius.pm @@ -43,7 +43,7 @@ sub textradius_queue {      'job'    => "FS::part_export::textradius::textradius_$method",    };    $queue->insert( -    $self->option('user'), +    $self->option('user')||'root',      $self->machine,      $self->option('users'),      @_, @@ -126,7 +126,8 @@ sub textradius_download {    $rsync->exec( {      src  => "$user\@$host:$users",      dest => $dest, -  } ) or die "error downloading $user\@$host:$users : ". $rsync->err; +  } ) or die "error downloading $user\@$host:$users : ". +             join(" / ", $rsync->err);    $dest;  } @@ -145,7 +146,8 @@ sub textradius_upload {    $rsync->exec( {      src  => "$dir/users",      dest => "$user\@$host:$users", -  } ) or die "error uploading to $user\@$host:$users : ". $rsync->err; +  } ) or die "error uploading to $user\@$host:$users : ". +             join(" / ", $rsync->err);    flock(LOCK,LOCK_UN);    close LOCK; | 
