summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2002-07-02 07:31:42 +0000
committerivan <ivan>2002-07-02 07:31:42 +0000
commit4c9602a986e835d56471a090afe8e5bd8fae5108 (patch)
treec604b4dfc14d906196490c277c5d80c6cfaeaa50
parent6dcf9258234427eb6cd6ad3e9912c4f1dac91ceb (diff)
working textradius
-rw-r--r--FS/FS/part_export/textradius.pm8
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;