Changeset 34519


Ignore:
Timestamp:
10/29/20 13:45:23 (5 weeks ago)
Author:
Jeremy Symon
Message:

adding in code to upload to www-internal. Needs a new ed25519 identity file to be generated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/snapshot/trunk/lib.pl

    r32048 r34519  
    218218    }
    219219
     220    #my $out = `set`;
     221    #print "out = $out\n";
    220222    my $command = "cd \"${release_dir}${sep}uploads\" && tar -c * | ";
    221223    $command .= ($^O eq "MSWin32" ? "plink" : "ssh");
    222224    $command .= " -T -i \"$ENV{'IDENTITY_FILE'}\" nzdl\@puka.cs.waikato.ac.nz";
    223     #print "$command\n";
     225    print "$command\n";
    224226    system("$command");
    225227   
    226     # for now, upload a copy to the new machine, later to replace puka
     228    ## for now, upload a copy to the new machine, later to replace puka
     229    #$command = "cd \"${release_dir}${sep}uploads\" && tar -c * | ";
     230    #$command .= ($^O eq "MSWin32" ? "plink" : "ssh");
     231    #$command .= " -T -i \"$ENV{'IDENTITY_FILE'}\" nzdl-gsorg\@wwwdev.greenstone.org";
     232    ##print "$command\n";
     233    #system("$command");
     234   
     235    # also upload a copy to www-internal, which is the new wwwdev, and will replace puka.
    227236    $command = "cd \"${release_dir}${sep}uploads\" && tar -c * | ";
    228237    $command .= ($^O eq "MSWin32" ? "plink" : "ssh");
    229     $command .= " -T -i \"$ENV{'IDENTITY_FILE'}\" nzdl-gsorg\@wwwdev.greenstone.org";
    230     #print "$command\n";
     238    $command .= " -T -i \"$ENV{'IDENTITY_FILE_ED25519'}\" nzdl-gsorg\@www-internal.greenstone.org";
     239    print "$command\n";
    231240    system("$command");
    232 }
     241
     242}
Note: See TracChangeset for help on using the changeset viewer.