aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
Diffstat (limited to 'ulri')
-rwxr-xr-xulri5
1 files changed, 3 insertions, 2 deletions
diff --git a/ulri b/ulri
index c9f2990..e585013 100755
--- a/ulri
+++ b/ulri
@@ -635,7 +635,8 @@ foreach my $prefix (sort keys %pkg_tree) {
# Copy packages to build node
#
- next if ssh($remote, "mkdir -p $prefix_dir");
+ # create also the log dir for botcmd.log
+ next if ssh($remote, "mkdir -p $prefix_dir/log");
my $pkgs = "";
my $ok = 1;
foreach my $srpm (@$srpms) {
@@ -673,7 +674,7 @@ foreach my $prefix (sort keys %pkg_tree) {
$cmd =~ s!__MEDIA__!$media_to_add!g;
plog('DEBUG', "Build $pkgs");
- ssh($remote, "$cmd $pkgs > $temp &");
+ ssh($remote, "'$cmd $pkgs | tee $prefix_dir/log/botcmd.log' > $temp &");
# wait 10 seconds or until we have the log file
# plus 20 seconds if it timeouts.