- Timestamp:
- 11/14/08 11:35:11 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9162 r9163 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2008/11/14 Daniela Dorner 22 23 * datacenter/scripts/sourcefile: 24 - added variable for sql.rc 25 26 20 27 21 28 2008/11/13 Daniela Dorner -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9135 r9163 112 112 jmscriptlog=$runlogpath/jobmanager`date +%F`.log 113 113 steps=$mars/resources/steps.rc 114 sqlrc=$mars/sql.rc 114 115 # resetting values 115 116 pno=0 … … 228 229 function getdbsetup() 229 230 { 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:\/\///'` 234 235 # echo "setup: " 235 236 # echo " db: "$db
Note:
See TracChangeset
for help on using the changeset viewer.