IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38566


Ignore:
Timestamp:
Jul 2, 2015, 10:31:49 AM (11 years ago)
Author:
bills
Message:

don't lose dbname when updateing database in update mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/staticsky.pl

    r38519 r38566  
    334334    {
    335335        my $command = "$staticskytool -sky_id $sky_id";
     336        $command .= " -dbname $dbname" if defined $dbname;
    336337        if ($updatemode) {
    337338            $command .= " -updaterun -set_state full";
     
    341342            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    342343            $command .= " -hostname $host" if defined $host;
    343             $command .= " -dbname $dbname" if defined $dbname;
    344344        }
    345345
     
    368368       
    369369        my $command = "$staticskytool -sky_id $sky_id -fault $exit_code";
     370        $command .= " -dbname $dbname" if defined $dbname;
    370371        if ($updatemode) {
    371372            $command .= " -updateresult";
     
    375376            $command .= " -hostname $host" if defined $host;
    376377            $command .= " -path_base $outroot" if defined $outroot;
    377             $command .= " -dbname $dbname" if defined $dbname;
    378378        }
    379379        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.