From: ivan Date: Tue, 2 Jul 2002 07:31:42 +0000 (+0000) Subject: working textradius X-Git-Tag: freeside_1_4_0_beta1~32 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4c9602a986e835d56471a090afe8e5bd8fae5108 working textradius --- 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;