IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37815


Ignore:
Timestamp:
Jan 12, 2015, 11:05:51 AM (12 years ago)
Author:
bills
Message:

remove hard coded reference to the dbserver. Get it from site.config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20141024/ippScripts/scripts/stack_bkg_mk_mdc.pl

    r36810 r37815  
    2828my $verbose = 0;
    2929
     30my $ipprc = PS::IPP::Config->new( $camera );
     31my $mdcParser = PS::IPP::Metadata::Config->new;
     32
    3033use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock';
    31 my $dbserver = 'ippdb01';
     34my $dbserver =  metadataLookupStr($ipprc->{_siteConfig}, 'DBSERVER');
    3235my $dbuser = 'ippuser';
    3336my $dbpass = 'ippuser';
     
    3841    ) or die "Unable to connect to database $DBI::errstr\n";
    3942
    40 my $ipprc = PS::IPP::Config->new( $camera );
    41 my $mdcParser = PS::IPP::Metadata::Config->new;
    4243
    4344
Note: See TracChangeset for help on using the changeset viewer.