diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-14 01:37:28 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-12-14 01:37:28 +0200 |
commit | 28b86c731d9ecb6b72238a5367b3f824d51c75a1 (patch) | |
tree | 91a0b5a8a7321a7e0cc7f22495c08db4bba33ae4 /makeself/install-or-update.sh | |
parent | 489c3e6fe1dbe912189c47b655aae95fe83f79a2 (diff) |
both installers download configuration from netdata.conf and provide a sane default when this is not possible
Diffstat (limited to 'makeself/install-or-update.sh')
-rwxr-xr-x | makeself/install-or-update.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index b64e7be335..34630cf169 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -162,7 +162,9 @@ progress "starting netdata" restart_netdata "/opt/netdata/bin/netdata" if [ $? -eq 0 ] then + download_netdata_conf "${NETDATA_USER}:${NETDATA_GROUP}" "/opt/netdata/etc/netdata/netdata.conf" "http://localhost:19999/netdata.conf" netdata_banner "is installed and running now!" else + generate_netdata_conf "${NETDATA_USER}:${NETDATA_GROUP}" "/opt/netdata/etc/netdata/netdata.conf" "http://localhost:19999/netdata.conf" netdata_banner "is installed now!" fi |