From 74d6cc34fee9642c82edab5bcefef200e797d894 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sun, 11 Nov 2018 20:51:41 -0500 Subject: [PATCH] Started working on start config magic --- chainquery/stuff/start.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chainquery/stuff/start.sh b/chainquery/stuff/start.sh index 6a46040..0954254 100755 --- a/chainquery/stuff/start.sh +++ b/chainquery/stuff/start.sh @@ -22,7 +22,7 @@ CONFIG_SETTINGS=( APIMYSQLDSN ) -function set_configs() { +function set_configs(parameter) { ## Set configs on container start if not already set. for i in "${!CONFIG_SETTINGS[@]}"; do echo ${CONFIG_SETTINGS[$i]}"_KEY" @@ -37,8 +37,6 @@ function set_configs() { if [[ ! -f /etc/chainquery/chainqueryconfig.toml ]]; then echo "[INFO]: Found no chainqueryconfig.toml" echo " Installing default and configuring with provided environment variables if any." - ## Install fresh copy of config file. - cp /etc/chainquery/chainqueryconfig.toml.orig /etc/chainquery/chainqueryconfig.toml set_configs else echo "[INFO]: Found a copy of chainqueryconfig.toml in /etc/chainquery"