IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38208 for trunk/ippMonitor


Ignore:
Timestamp:
Apr 28, 2015, 2:54:20 PM (11 years ago)
Author:
eugene
Message:

move passwords out of files which are checked into svn

Location:
trunk/ippMonitor
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/configure.tcsh

    r27113 r38208  
    1010
    1111set htdocs  = ""
    12 set dbhost  = ""
    13 set dbuser  = ""
    14 set dbpass  = ""
     12# set dbhost  = ""
     13# set dbuser  = ""
     14# set dbpass  = ""
    1515
    1616set prefix  = ""
     
    5252   endif
    5353   breaksw;
    54   case --dbhost*
    55    if ("$1" == "--dbhost") then
    56      shift
    57      set dbhost = $1
    58    else
    59      set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'`
    60    endif
    61    breaksw;
    62   case --dbuser*
    63    if ("$1" == "--dbuser") then
    64      shift
    65      set dbuser = $1
    66    else
    67      set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'`
    68    endif
    69    breaksw;
    70   case --dbpass*
    71    if ("$1" == "--dbpass") then
    72      shift
    73      set dbpass = $1
    74    else
    75      set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'`
    76    endif
    77    breaksw;
     54#   case --dbhost*
     55#    if ("$1" == "--dbhost") then
     56#      shift
     57#      set dbhost = $1
     58#    else
     59#      set dbhost = `echo $1 | tr = ' ' | awk '{print $2}'`
     60#    endif
     61#    breaksw;
     62#   case --dbuser*
     63#    if ("$1" == "--dbuser") then
     64#      shift
     65#      set dbuser = $1
     66#    else
     67#      set dbuser = `echo $1 | tr = ' ' | awk '{print $2}'`
     68#    endif
     69#    breaksw;
     70#   case --dbpass*
     71#    if ("$1" == "--dbpass") then
     72#      shift
     73#      set dbpass = $1
     74#    else
     75#      set dbpass = `echo $1 | tr = ' ' | awk '{print $2}'`
     76#    endif
     77#    breaksw;
    7878  case --prefix*
    7979   if ("$1" == "--prefix") then
     
    142142echo "site:   $site"
    143143echo "htdocs: $htdocs"
    144 echo "dbhost: $dbhost"
    145 echo "dbuser: $dbuser"
    146 echo "dbpass: $dbpass"
     144# echo "dbhost: $dbhost"
     145# echo "dbuser: $dbuser"
     146# echo "dbpass: $dbpass"
    147147echo "DBI:    $DBI"
    148148echo
    149149
    150150if ("$htdocs" == "") goto usage
    151 if ("$dbhost" == "") goto usage
    152 if ("$dbuser" == "") goto usage
    153 if ("$dbpass" == "") goto usage
     151# if ("$dbhost" == "") goto usage
     152# if ("$dbuser" == "") goto usage
     153# if ("$dbpass" == "") goto usage
    154154
    155155# BINDIR holds the output binary files
     
    187187# convert raw/site.php.in to raw/site.php
    188188if (-e raw/site.php) mv -f raw/site.php raw/site.php~
    189 cat raw/site.php.in | sed "s|@DBHOST@|$dbhost|"  > tmp.1
    190 cat tmp.1           | sed "s|@DBUSER@|$dbuser|"  > tmp.2
    191 cat tmp.2           | sed "s|@DBPASS@|$dbpass|"  > tmp.1
    192 cat tmp.1           | sed "s|@BINDIR@|$bindir|"  > tmp.2
     189cat raw/site.php.in | sed "s|@BINDIR@|$bindir|"  > tmp.2
    193190cat tmp.2           | sed "s|@LIBDIR@|$libdir|"  > tmp.1
    194191cat tmp.1           | sed "s|@PERLLIB@|$libdir|" > tmp.2
    195192cat tmp.2           | sed "s|@SITE@|$site|"      > tmp.1
    196193cat tmp.1           | sed "s|@DBI@|$DBI|"        > tmp.2
    197 cat tmp.2           | sed "s|@HOST@|$hostname|"  > raw/site.php
     194cat tmp.2           | sed "s|@HOST@|$hostname|"  > tmp.1
     195awk 'BEGIN{t = 0}((t == 0) && ($1 != "@CONFIG.DAT@")){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 > raw/site.php
     196cat config.dat >> raw/site.php
     197awk 'BEGIN{t = 0}(t == 1){print $0}($1 == "@CONFIG.DAT@"){t = 1}' tmp.1 >> raw/site.php
     198
    198199rm -f tmp.1 tmp.2
    199200
     
    213214set the IPP installation directory root with --prefix
    214215
    215 set the database host, user, password with: --dbhost, --dbuser, -dbpass
    216  
     216set the site.php file based on config.dat in this directory
     217
    217218either --prefix or both --bindir and --libdir and [--datadir or --site] are required
    218219
  • trunk/ippMonitor/raw/site.php.in

    r38200 r38208  
    22
    33$WWWHOST = "@HOST@";
    4 $DBHOST  = "@DBHOST@";
    5 $DBUSER  = "@DBUSER@";
    6 $DBPASS  = "@DBPASS@";
    74
    85$PERLLIB = "@PERLLIB@";
     
    1613$DBI     = "@DBI@";
    1714
    18 // Temporary files belonging to DELETION_USER and older than
    19 // DELETION_DELAY minutes will be delayed by the
    20 // delete_old_tmp_files() function (see raw/ipp.php)
    21 $DELETION_USER  = "apache";
    22 $DELETION_DELAY = 15;
    23 
    24 $REPL_HOST_IPPADMIN = "ipp0012.IfA.Hawaii.Edu";
    25 $REPL_USER_IPPADMIN = "ippMonitor";
    26 $REPL_PASSWORD_IPPADMIN = "ippMonitor";
    27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb, ipptopsps, megacam, ssp, uip)" ;
    28 
    29 $REPL_HOST_NEBULOUS = "ippdb02.IfA.Hawaii.Edu";
    30 $REPL_USER_NEBULOUS = "ippMonitor";
    31 $REPL_PASSWORD_NEBULOUS = "ippMonitor";
    32 $REPL_DBNAME_NEBULOUS = "ippdb02 (nebulous / 50,000 sec behind is acceptable / usually stopped on Mondays and Tuesdays for backups)";
    33 
    34 $REPL_HOST_PSTAMP = "ippc19.IfA.Hawaii.Edu";
    35 $REPL_USER_PSTAMP = "ippMonitor";
    36 $REPL_PASSWORD_PSTAMP = "ippMonitor";
    37 $REPL_DBNAME_PSTAMP = "ippc19 (ippRequestServer)";
    38 
    39 $REPL_HOST_GPC1 = "ippdb03.IfA.Hawaii.Edu";
    40 $REPL_USER_GPC1 = "ippMonitor";
    41 $REPL_PASSWORD_GPC1 = "ippMonitor";
    42 $REPL_DBNAME_GPC1 = "ippdb03 (czardb, gpc1, ippadmin, ipptopsps, megacam, skycells, ssp, uip)";
    43 
    44 $REPL_HOST_ISP = "ippc17.IfA.Hawaii.Edu";
    45 $REPL_USER_ISP = "ippMonitor";
    46 $REPL_PASSWORD_ISP = "ippMonitor";
    47 $REPL_DBNAME_ISP = "ippc17 (isp)";
    48 
    49 $REPL_HOST_NEBULOUS_SECONDARY = "ippdb06.IfA.Hawaii.Edu";
    50 $REPL_USER_NEBULOUS_SECONDARY = "ippMonitor";
    51 $REPL_PASSWORD_NEBULOUS_SECONDARY = "ippMonitor";
    52 $REPL_DBNAME_NEBULOUS_SECONDARY = "ippdb06 (secondary nebulous)";
     15// insert config.dat here
     16@CONFIG.DAT@
    5317
    5418?>
Note: See TracChangeset for help on using the changeset viewer.