diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-11-30 15:50:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 15:50:21 +0200 |
commit | 513c3bedd7d1bc2481d0f31683fbc5623d1cb6a8 (patch) | |
tree | 2bd70b04cd96270f403fe2f2720c6a7c836aed2e | |
parent | d477387b985aa90e64292ddc3fe210aa44c4cc0b (diff) |
add curl example to create_netdata_conf() (#16498)
-rw-r--r-- | packaging/installer/functions.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index b12a9a5854..dd3158d6dd 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -905,8 +905,13 @@ create_netdata_conf() { fi if [ -z "$url" ]; then - echo "# netdata can generate its own config which is available at 'http://<netdata_ip>/netdata.conf'" > "${path}" - echo "# You can download it with command like: 'wget -O ${path} http://localhost:19999/netdata.conf'" >> "${path}" + cat << EOF > "${path}" +# netdata can generate its own config which is available at 'http://<IP>:19999/netdata.conf' +# You can download it using: +# curl -o ${path} http://localhost:19999/netdata.conf +# or +# wget -O ${path} http://localhost:19999/netdata.conf +EOF fi } |