db settings -> global conf

This commit is contained in:
6543 2019-05-11 18:26:22 +02:00
parent f3eafa3a31
commit d6c6b2d18d
2 changed files with 8 additions and 8 deletions

View File

@ -31,10 +31,10 @@
} }


{ #db { #db
dbname="tt_test" dbname=$(grep -v '#' $globalconf | grep ^dbname= | sed "s|^dbname=||g" | tr -d '"')
dbhost="localhost" dbhost=$(grep -v '#' $globalconf | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
dbuser="root" dbuser=$(grep -v '#' $globalconf | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')
dbpwd="" dbpwd=$(grep -v '#' $globalconf | grep ^dbpwd= | sed "s|^dbpwd=||g" | tr -d '"')
} }


function help() { function help() {

View File

@ -35,10 +35,10 @@
} }


{ #db { #db
dbname="tt_test" dbname=$(grep -v '#' $globalconf | grep ^dbname= | sed "s|^dbname=||g" | tr -d '"')
dbhost="localhost" dbhost=$(grep -v '#' $globalconf | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
dbuser="root" dbuser=$(grep -v '#' $globalconf | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')
dbpwd="" dbpwd=$(grep -v '#' $globalconf | grep ^dbpwd= | sed "s|^dbpwd=||g" | tr -d '"')
} }


function help() { function help() {