--- YodaProfiler/docs/install_DB.sh 2006/10/20 11:11:10 1.3 +++ YodaProfiler/docs/install_DB.sh 2006/11/07 12:17:44 1.5 @@ -4,7 +4,7 @@ HOST="" DBNAME="" FORCE="no" -COUNT=0;for word in `echo ${PAM_DBHOST} | tr [\/] [" "] |sed 's/mysql://g' `; do if [ $COUNT -eq 0 ]; then HOST=`echo $word`; fi; if [ $COUNT -eq 1 ]; then DBNAME=`echo $word`; fi; let COUNT=$COUNT+1; done +COUNT=0;for word in `echo ${PAM_DBHOST} | tr [\/] [" "] |tr [?] [" "] |sed 's/mysql://g' `; do if [ $COUNT -eq 0 ]; then HOST=`echo $word`; fi; if [ $COUNT -eq 1 ]; then DBNAME=`echo $word`; fi; let COUNT=$COUNT+1; done PASSWORD=${PAM_DBPSW} if [ $# -gt 0 ]; then for INPUT in $*; do @@ -31,7 +31,7 @@ fi TEST=`echo $INPUT | sed 's/--host=//g'` if [ $TEST != $INPUT ]; then - COUNT=0;for word in `echo $TEST | tr [\/] [" "] |sed 's/mysql://g' `; do if [ $COUNT -eq 0 ]; then HOST=`echo $word`; fi; if [ $COUNT -eq 1 ]; then DBNAME=`echo $word`; fi; let COUNT=$COUNT+1; done + COUNT=0;for word in `echo $TEST | tr [\/] [" "] | tr [?] [" "] | sed 's/mysql://g' `; do if [ $COUNT -eq 0 ]; then HOST=`echo $word`; fi; if [ $COUNT -eq 1 ]; then DBNAME=`echo $word`; fi; let COUNT=$COUNT+1; done export DBNAME; export HOST; fi @@ -48,7 +48,7 @@ else if [ "$USERNAME" == "" ] || [ "$HOST" == "" ] || [ "$DBNAME" == "" ]; then echo "" - echo " Usage: ./install_GL_PARAM.sh [options] " + echo " Usage: ./install_DB.sh [options] " echo "" echo " Options: " echo ""