Changeset 1682 in ProjectBuilder


Ignore:
Timestamp:
Dec 27, 2012, 9:08:03 PM (11 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug where common delivery was broken due to wrong usage of the $machine variable instead of $mach
File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/casparbuster/devel/bin/cb

    r1679 r1682  
    395395}
    396396
    397 $ssh2 = cb_ssh_init($remote,$machine,$debug);
     397$ssh2 = cb_ssh_init($remote,$mach,$debug);
    398398
    399399$ssh2->scp_put($tarfile,$tarfile);
     
    417417}
    418418
    419 pb_log(0,"INFO: Extracting $tbextract (on $machine) $tarfile under $path\n");
     419pb_log(0,"INFO: Extracting $tbextract (on $mach) $tarfile under $path\n");
    420420
    421421foreach my $k (keys %{$cbp}) {
     
    426426            if ((defined $force) || (not defined $cbp->{$k}->{$type}->{$o}->{'deleted'})) {
    427427                if ($debug) {
    428                     #pb_log(1,"INFO: Executing (on $machine) sudo chown $cbp->{$k}->{$type}->{$o}->{'uid'}:$cbp->{$k}->{$type}->{$o}->{'gid'} $path/$o\n");
    429                     #pb_log(1,"INFO: Executing (on $machine) sudo chmod $cbp->{$k}->{$type}->{$o}->{'mode'} $path/$o\n");
     428                    #pb_log(1,"INFO: Executing (on $mach) sudo chown $cbp->{$k}->{$type}->{$o}->{'uid'}:$cbp->{$k}->{$type}->{$o}->{'gid'} $path/$o\n");
     429                    #pb_log(1,"INFO: Executing (on $mach) sudo chmod $cbp->{$k}->{$type}->{$o}->{'mode'} $path/$o\n");
    430430                } else {
    431431                    # TODO: remove hardcoded commands
     
    434434                    #print $chan "sudo chmod $cbp->{$k}->{$type}->{$o}->{'mode'} $path/$o\n";
    435435                }
    436                 pb_log(0,"INFO: Delivering $path/$o on $machine\n");
     436                pb_log(0,"INFO: Delivering $path/$o on $mach\n");
    437437            }
    438438        }
     
    442442            print $chan "$cbp->{$k}->{'reloadscript'}\n";
    443443        }
    444         pb_log(0,"INFO: Executing (on $machine) $cbp->{$k}->{'reloadscript'}\n");
     444        pb_log(0,"INFO: Executing (on $mach) $cbp->{$k}->{'reloadscript'}\n");
    445445    }
    446446}
     
    450450    print $chan "rm -rf $ENV{'PBTMP'}\n";
    451451} else {
    452     pb_log(1,"Remove remote directory $ENV{'PBTMP'} on $machine\n");
     452    pb_log(1,"Remove remote directory $ENV{'PBTMP'} on $mach\n");
    453453}
    454454$chan->close();
Note: See TracChangeset for help on using the changeset viewer.