diff options
author | Tasos Katsoulas <tasos@netdata.cloud> | 2024-02-29 13:45:19 +0200 |
---|---|---|
committer | Tasos Katsoulas <tasos@netdata.cloud> | 2024-02-29 13:45:19 +0200 |
commit | d95ce5013a688190e55a9c70fb4d7d6f65ef84e6 (patch) | |
tree | 2c40865bcece12d18b9ec96ddb641d90796816f8 | |
parent | e83216f6a28869abc8979a34f79a1eb4c3d1d0d3 (diff) |
Do not print the consult guide again if the user encountered non fatal warnings (on fatal)
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
-rwxr-xr-x | packaging/installer/kickstart.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh index 90ca1ea9ae..c0720e9c47 100755 --- a/packaging/installer/kickstart.sh +++ b/packaging/installer/kickstart.sh @@ -426,23 +426,23 @@ cleanup() { deferred_warnings() { if [ -n "${NETDATA_WARNINGS}" ]; then - printf >&2 "%s\n" "The following non-fatal warnings or errors were encountered:" # shellcheck disable=SC2059 printf >&2 "${NETDATA_WARNINGS}" printf >&2 "\n" - printf >&2 "%s\n" "You can consult the guide to common installation problems in our documentation ${TROUBLESHOOTING_GUIDE_URL}" + printf >&2 "%s\n" "You can consult the guide to common installation problems in our docs: ${TROUBLESHOOTING_GUIDE_URL}" printf >&2 "\n\n" fi } fatal() { - troubleshoot_guide_url="https://learn.netdata.cloud/docs/installing/installation-troubleshoot-actions" deferred_warnings printf >&2 "%s\n\n" "${TPUT_BGRED}${TPUT_WHITE}${TPUT_BOLD} ABORTED ${TPUT_RESET} ${1}" printf >&2 "%s\n" "For community support, you can connect with us on:" support_list - printf >&2 "%s\n" "Or you can consult the guide to common installation problems in our documentation ${TROUBLESHOOTING_GUIDE_URL}" + if [ -n "${NETDATA_WARNINGS}" ]; then + printf >&2 "%s\n" "Or you can consult the guide to common installation problems in our docs: ${TROUBLESHOOTING_GUIDE_URL}" + fi telemetry_event "INSTALL_FAILED" "${1}" "${2}" cleanup trap - EXIT |