Setup value strings fix applied

This commit is contained in:
Leopere 2018-11-11 22:20:38 -05:00 committed by Mark Beamer Jr
parent c7c4966291
commit 0748221f38
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -4,24 +4,23 @@
## Setup Values ## Setup Values
echo FINDME echo FINDME
DEBUGMODE=$(echo "debugquerymode=${DEBUGMODE:-false}") # DEBUGMODE=$(echo "debugquerymode=$DEBUGMODE")
echo $DEBUGMODE # echo $DEBUGMODE
LBRYCRDURL=$(echo "rpc://${RPC_USER:-lbryrpc}:${RPC_PASSWORD:-changeme}@10.5.1.2:9245") LBRYCRDURL=$(echo "lbrycrdurl=\"rpc://$RPC_USER:$RPC_PASSWORD@10.5.1.2:9245\"")
echo $LBRYCRDURL echo $LBRYCRDURL
MYSQLDSN=$(echo "${MYSQL_USER:-chainquery}:${MYSQL_PASSWORD:-changeme}@tcp(${MYSQL_SERVER:-10.5.1.10}:3306)/${MYSQL_DATABASE:-chainquery}") MYSQLDSN=$(echo "mysqldsn=\"$MYSQL_USER:$MYSQL_PASSWORD@tcp($MYSQL_SERVER:3306)/$MYSQL_DATABASE\"")
echo $MYSQLDSN echo $MYSQLDSN
APIMYSQLDSN=$(echo "${MYSQL_USER:-chainquery}:${MYSQL_PASSWORD:-changeme}@tcp(${MYSQL_SERVER:-10.5.1.10}:3306)/${MYSQL_DATABASE:-chainquery}") APIMYSQLDSN=$(echo "apimysqldsn=\"$MYSQL_USER:$MYSQL_PASSWORD@tcp($MYSQL_SERVER:3306)/$MYSQL_DATABASE\"")
echo $APIMYSQLDSN echo $APIMYSQLDSN
## Setup Defaults ## Setup Defaults
DEBUGMODE_DEFAULT='#DEFAULT-debugquerymode=false' # DEBUGMODE_DEFAULT='#DEFAULT-debugquerymode=false'
LBRYCRDURL_DEFAULT='#DEFAULT-lbrycrdurl="rpc://lbry:lbry@localhost:9245"' LBRYCRDURL_DEFAULT='#DEFAULT-lbrycrdurl="rpc://lbry:lbry@localhost:9245"'
MYSQLDSN_DEFAULT='#DEFAULT-mysqldsn="lbry:lbry@tcp(localhost:3306)/chainquery"' MYSQLDSN_DEFAULT='#DEFAULT-mysqldsn="lbry:lbry@tcp(localhost:3306)/chainquery"'
APIMYSQLDSN_DEFAULT='#DEFAULT-apihostport="0.0.0.0:6300"' APIMYSQLDSN_DEFAULT='#DEFAULT-apihostport="0.0.0.0:6300"'
## Add setup value variable name to this list to get processed on container start ## Add setup value variable name to this list to get processed on container start
CONFIG_SETTINGS=( CONFIG_SETTINGS=(
DEBUGMODE
LBRYCRDURL LBRYCRDURL
MYSQLDSN_ MYSQLDSN_
APIMYSQLDSN APIMYSQLDSN