From 4c9602a986e835d56471a090afe8e5bd8fae5108 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 2 Jul 2002 07:31:42 +0000 Subject: [PATCH] working textradius --- FS/FS/part_export/textradius.pm | 8 +++++--- 1 file 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; -- 2.11.0