| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | # shellcheck source=./packaging/makeself/functions.sh |
| 5 | . "${NETDATA_MAKESELF_PATH}"/functions.sh "${@}" || exit 1 |
| 6 | |
| 7 | # shellcheck disable=SC2015 |
| 8 | [ "${GITHUB_ACTIONS}" = "true" ] && echo "::group::Confirming that Netdata is statically linked" || true |
| 9 | |
| 10 | # Ensure the netdata binary is in fact statically linked |
| 11 | if run readelf -l "${NETDATA_INSTALL_PATH}/bin/netdata" | grep 'INTERP'; then |
| 12 | printf >&2 "Ooops. %s is not a statically linked binary!\n" "${NETDATA_INSTALL_PATH}/bin/netdata" |
| 13 | ldd "${NETDATA_INSTALL_PATH}/bin/netdata" |
| 14 | exit 1 |
| 15 | fi |
| 16 | |
| 17 | # shellcheck disable=SC2015 |
| 18 | [ "${GITHUB_ACTIONS}" = "true" ] && echo "::endgroup::" || true |