summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/jobs
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-03-22 08:49:04 -0400
committerGitHub <noreply@github.com>2022-03-22 08:49:04 -0400
commitf7579fee54846a04c6445a9dd18d1c279bc13246 (patch)
tree91f394a60fddb4bf0bddb1546afc3382cace639e /packaging/makeself/jobs
parentc77e3530886ca4c439dad7fa9533e3c032cfdfc5 (diff)
Use the built agentversion for Netdata static build archive name. (#12335)
This ensures that the version reported by `netdata -v` will match up with the version number embedded in the static build archive file names.
Diffstat (limited to 'packaging/makeself/jobs')
-rwxr-xr-xpackaging/makeself/jobs/99-makeself.install.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/packaging/makeself/jobs/99-makeself.install.sh b/packaging/makeself/jobs/99-makeself.install.sh
index 9dfcfbed77..d29d0580a9 100755
--- a/packaging/makeself/jobs/99-makeself.install.sh
+++ b/packaging/makeself/jobs/99-makeself.install.sh
@@ -12,10 +12,7 @@ run cd "${NETDATA_SOURCE_PATH}" || exit 1
# -----------------------------------------------------------------------------
# find the netdata version
-VERSION="$(git describe 2> /dev/null)"
-if [ -z "${VERSION}" ]; then
- VERSION=$(cat packaging/version)
-fi
+VERSION="$("${NETDATA_INSTALL_PARENT}/netdata/bin/netdata" -v | cut -f 2 -d ' ')"
if [ "${VERSION}" == "" ]; then
echo >&2 "Cannot find version number. Create makeself executable from source code with git tree structure."