IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4905


Ignore:
Timestamp:
Aug 30, 2005, 2:05:05 PM (21 years ago)
Author:
jhoblitt
Message:

VERSION to '0.02'
add NEB_DB, NEB_USER, & NEB_PASS environment variables

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/bin/neb-initdb

    r4897 r4905  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: neb-initdb,v 1.2 2005-08-30 00:04:04 jhoblitt Exp $
     5# $Id: neb-initdb,v 1.3 2005-08-31 00:05:05 jhoblitt Exp $
    66
    77use strict;
     
    99
    1010use vars qw( $VERSION );
    11 $VERSION = '0.01';
     11$VERSION = '0.02';
    1212
    1313use DBI;
     
    1818
    1919my ($db, $dbuser, $dbpass);
     20
     21$db     = $ENV{'NEB_DB'} unless $db;
     22$dbuser = $ENV{'NEB_USER'} unless $dbuser;
     23$dbpass = $ENV{'NEB_PASS'} unless $dbpass;
     24
    2025GetOptions(
    2126    'db=s'      => \$db,
     
    9196=back
    9297
     98=head1 ENVIRONMENT
     99
     100These environment variables may be used in place of the specified command line
     101options.  All command line option will override the corresponding environment
     102value.
     103
     104=over 4
     105
     106=item * C<NEB_DB>
     107
     108Equivalent to --db|-d
     109
     110=item * C<NEB_USER>
     111
     112Equivalent to --user|-u
     113
     114=item * C<NEB_PASS>
     115
     116Equivalent to --pass|-p
     117
     118=back
     119
    93120=head1 CREDITS
    94121
  • trunk/Nebulous/bin/neb-initdb

    r4897 r4905  
    33# Copyright (C) 2005  Joshua Hoblitt
    44#
    5 # $Id: neb-initdb,v 1.2 2005-08-30 00:04:04 jhoblitt Exp $
     5# $Id: neb-initdb,v 1.3 2005-08-31 00:05:05 jhoblitt Exp $
    66
    77use strict;
     
    99
    1010use vars qw( $VERSION );
    11 $VERSION = '0.01';
     11$VERSION = '0.02';
    1212
    1313use DBI;
     
    1818
    1919my ($db, $dbuser, $dbpass);
     20
     21$db     = $ENV{'NEB_DB'} unless $db;
     22$dbuser = $ENV{'NEB_USER'} unless $dbuser;
     23$dbpass = $ENV{'NEB_PASS'} unless $dbpass;
     24
    2025GetOptions(
    2126    'db=s'      => \$db,
     
    9196=back
    9297
     98=head1 ENVIRONMENT
     99
     100These environment variables may be used in place of the specified command line
     101options.  All command line option will override the corresponding environment
     102value.
     103
     104=over 4
     105
     106=item * C<NEB_DB>
     107
     108Equivalent to --db|-d
     109
     110=item * C<NEB_USER>
     111
     112Equivalent to --user|-u
     113
     114=item * C<NEB_PASS>
     115
     116Equivalent to --pass|-p
     117
     118=back
     119
    93120=head1 CREDITS
    94121
Note: See TracChangeset for help on using the changeset viewer.