From 11e055fe39dd4c7cf64ec2ff7fb8bd73ec656e6b Mon Sep 17 00:00:00 2001 From: Leopere Date: Sun, 11 Nov 2018 21:13:20 -0500 Subject: [PATCH] Add config if no config --- chainquery/stuff/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chainquery/stuff/start.sh b/chainquery/stuff/start.sh index 0954254..32a816d 100755 --- a/chainquery/stuff/start.sh +++ b/chainquery/stuff/start.sh @@ -37,6 +37,8 @@ function set_configs(parameter) { 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"