add curl example to create_netdata_conf() (#16498)
Ilya Mashchenko committed
Nov 30, 2023 at 15:50 UTC
513c3bedd7d1bc2481d0f31683fbc5623d1cb6a8
1 file changed
+7
-2
packaging/installer/functions.sh
+7
-2
@@ -905,8 +905,13 @@ create_netdata_conf() {
905
fi
906
907
if [ -z "$url" ]; then
908
- echo "# netdata can generate its own config which is available at 'http://<netdata_ip>/netdata.conf'" > "${path}"
909
- echo "# You can download it with command like: 'wget -O ${path} http://localhost:19999/netdata.conf'" >> "${path}"
908
+ cat << EOF > "${path}"
909
+# netdata can generate its own config which is available at 'http://<IP>:19999/netdata.conf'
910
+# You can download it using:
911
+# curl -o ${path} http://localhost:19999/netdata.conf
912
+# or
913
+# wget -O ${path} http://localhost:19999/netdata.conf
914
+EOF
915
fi
916
917
}