run-all-jobs.sh 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # SPDX-License-Identifier: GPL-3.0-or-later
  3. set -e
  4. LC_ALL=C
  5. umask 002
  6. # -----------------------------------------------------------------------------
  7. # prepare the environment for the jobs
  8. # installation directory
  9. export NETDATA_INSTALL_PATH="${1-/opt/netdata}"
  10. # our source directory
  11. NETDATA_MAKESELF_PATH="$(dirname "${0}")"
  12. export NETDATA_MAKESELF_PATH
  13. if [ "${NETDATA_MAKESELF_PATH:0:1}" != "/" ]; then
  14. NETDATA_MAKESELF_PATH="$(pwd)/${NETDATA_MAKESELF_PATH}"
  15. export NETDATA_MAKESELF_PATH
  16. fi
  17. # netdata source directory
  18. export NETDATA_SOURCE_PATH="${NETDATA_MAKESELF_PATH}/../.."
  19. # make sure ${NULL} is empty
  20. export NULL=
  21. # -----------------------------------------------------------------------------
  22. cd "${NETDATA_MAKESELF_PATH}" || exit 1
  23. # shellcheck source=packaging/makeself/functions.sh
  24. . ./functions.sh "${@}" || exit 1
  25. for x in jobs/*.install.sh; do
  26. progress "running ${x}"
  27. "${x}" "${NETDATA_INSTALL_PATH}"
  28. done
  29. echo >&2 "All jobs for static packaging done successfully."
  30. exit 0