3 |
USERNAME=${PAM_DBUSER} |
USERNAME=${PAM_DBUSER} |
4 |
HOST="" |
HOST="" |
5 |
DBNAME="" |
DBNAME="" |
6 |
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 |
7 |
PASSWORD=${PAM_DBPSW} |
PASSWORD=${PAM_DBPSW} |
8 |
if [ $# -gt 0 ]; then |
if [ $# -gt 0 ]; then |
9 |
I=1 |
I=1 |
41 |
fi |
fi |
42 |
TEST=`echo $INPUT | sed 's/--host=//g'` |
TEST=`echo $INPUT | sed 's/--host=//g'` |
43 |
if [ $TEST != $INPUT ]; then |
if [ $TEST != $INPUT ]; then |
44 |
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 |
45 |
export DBNAME; |
export DBNAME; |
46 |
export HOST; |
export HOST; |
47 |
fi |
fi |