IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30005


Ignore:
Timestamp:
Dec 9, 2010, 1:26:56 PM (15 years ago)
Author:
bills
Message:

require dbhost to be supplied

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/makedistdest

    r29237 r30005  
    1313
    1414my $prod_name;
     15my $dbhost;
    1516
    1617GetOptions(
    1718           'prod_name=s'     => \$prod_name,
     19           'dbhost=s'        => \$dbhost,
    1820) or pod2usage( 2 );
    1921
    2022pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    21 pod2usage( -msg => "Required options: --prod_name",
     23pod2usage( -msg => "Required options: --prod_name --dbhost",
    2224           -exitval => 3)
    23     unless defined $prod_name; 
     25    unless defined $prod_name
     26    and defined $dbhost; 
    2427
    2528my $cmd = "dsprodtool --add $prod_name --type ipp-dist --description $prod_name";
     
    3134die "dsprodtool failed: $rc" if $rc;
    3235
    33 $cmd = "disttool -dbname gpc1 -definedestination -ds_dbname ippRequestServer -ds_dbhost ippdb02 -name $prod_name";
     36$cmd = "disttool -dbname gpc1 -definedestination -ds_dbname ippRequestServer -ds_dbhost $dbhost -name $prod_name";
    3437
    3538$rc = system $cmd;
Note: See TracChangeset for help on using the changeset viewer.