fix db config load
This commit is contained in:
parent
e2c482403b
commit
3d291d2e6d
@ -66,7 +66,7 @@ function config_load() {
|
||||
readonly dbhost=$(grep -v '#' $config | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
|
||||
readonly dbuser=$(grep -v '#' $config | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')
|
||||
readonly dbpwd=$(grep -v '#' $config | grep ^dbpwd= | sed "s|^dbpwd=||g" | tr -d '"')
|
||||
readonly dbport=$(grep -v '#' $config | grep ^dbpwd= | sed "s|^dbport=||g" | tr -d '"')
|
||||
readonly dbport=$(grep -v '#' $config | grep ^dbport= | sed "s|^dbport=||g" | tr -d '"')
|
||||
#db checks
|
||||
[ "$(db_check)" == $FALSE ] && {
|
||||
echo "DB ERROR!!" >&2
|
||||
|
Loading…
Reference in New Issue
Block a user