Changeset 217


Ignore:
Timestamp:
Oct 15, 2007, 1:41:34 AM (13 years ago)
Author:
Bruno Cornec
Message:

ntpdate done in the VM before running pb to avoid time issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 0.8.5/pb/bin/pb

    r211 r217  
    658658    # Prepare the script to be executed on the VM
    659659    # in $ENV{'PBDESTDIR'}/pbscript
     660    my ($ntp) = pb_conf_get("vmntp");
     661    my $vmntp = $ntp->{$ENV{'PBPROJ'}};
    660662    open(SCRIPT,"> $ENV{'PBDESTDIR'}/pbscript") || die "Unable to create $ENV{'PBDESTDIR'}/pbscript";
    661663    print SCRIPT "#!/bin/bash\n";
     
    669671    print SCRIPT "mv .pbrc \$HOME\n";
    670672    print SCRIPT "cd ..\n";
     673    print SCRIPT "ntpdate $vmntp\n";
    671674    print SCRIPT "export PBROOT=\`pwd\`\n";
    672675    print SCRIPT "# Build\n";
Note: See TracChangeset for help on using the changeset viewer.