Changeset 9163


Ignore:
Timestamp:
Nov 14, 2008, 11:35:11 AM (12 years ago)
Author:
dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9162 r9163  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2008/11/14 Daniela Dorner
     22
     23   * datacenter/scripts/sourcefile:
     24     - added variable for sql.rc
     25
     26
    2027
    2128 2008/11/13 Daniela Dorner
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r9135 r9163  
    112112jmscriptlog=$runlogpath/jobmanager`date +%F`.log
    113113steps=$mars/resources/steps.rc
     114sqlrc=$mars/sql.rc
    114115# resetting values
    115116pno=0
     
    228229function getdbsetup()
    229230{
    230    db=`grep Database $mars/sql.rc | grep -v '#' | sed -e 's/Database: //' -e 's/ //g'`
    231    pw=`grep Password $mars/sql.rc | grep -v '#' | sed -e 's/Password: //' -e 's/ //g'`
    232    us=`grep User $mars/sql.rc | grep -v '#' | sed -e 's/User: //' -e 's/ //g'`
    233    ho=`grep URL $mars/sql.rc | grep -v '#' | sed -e 's/ //g' -e 's/URL:mysql:\/\///'`
     231   db=`grep Database $sqlrc | grep -v '#' | sed -e 's/Database: //' -e 's/ //g'`
     232   pw=`grep Password $sqlrc | grep -v '#' | sed -e 's/Password: //' -e 's/ //g'`
     233   us=`grep User $sqlrc | grep -v '#' | sed -e 's/User: //' -e 's/ //g'`
     234   ho=`grep URL $sqlrc | grep -v '#' | sed -e 's/ //g' -e 's/URL:mysql:\/\///'`
    234235#   echo "setup: "
    235236#   echo " db: "$db
Note: See TracChangeset for help on using the changeset viewer.