Add config if no config

This commit is contained in:
Leopere 2018-11-11 21:13:20 -05:00 committed by Mark Beamer Jr
parent cf486bed93
commit 11e055fe39
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -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"