diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-07-27 00:50:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 00:50:34 +0300 |
commit | e3babcb33931b2a5b99d14d950108e9ffea0a403 (patch) | |
tree | 12599c720043c8609d05683fdaf2398dff774e7e /netdata-installer.sh | |
parent | fa49ebfb3e64fd4c58ffd5a5db0b53054f6c5713 (diff) |
netdata/packaging: Adopt netdata-updater to run properly for static64 installations. (#6520)
* netdata/packaging: Start support for netdata-updater compatibility on static installation
1) Make netdata-installer.sh accept --static option, that simply passes variable IS_NETDATA_STATIC_BINARY=yes to the environment
2) Adjust the updater to check that variable and then is set to yes, make it download the static binary and run the static binary
In theory, this should give us the required info on the updater. Only thing missing is how to catch the extra arguments the user might have given on the initial install.
Will rework this after i test this first draft change
* netdata/packaging: dont forget to enter the temp dir and also return to the original one afterwards. Print some info too.
* netdata/packaging: reduce complexity on parameters for installer. Rather expect the variable to be set by the caller.
this way we wont let the users get confused by the existence of a flag that only has internal usage.
* netdata/packaging: dont forget to clean up the whole folder, its a temp
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index a0c3f828a4..ff7b9c8d90 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -199,6 +199,7 @@ NETDATA_PREFIX= LIBS_ARE_HERE=0 NETDATA_CONFIGURE_OPTIONS="${NETDATA_CONFIGURE_OPTIONS-}" RELEASE_CHANNEL="nightly" +IS_NETDATA_STATIC_BINARY="${IS_NETDATA_STATIC_BINARY:-"no"}" while [ -n "${1}" ]; do case "${1}" in "--zlib-is-really-here") LIBS_ARE_HERE=1;; @@ -1073,6 +1074,7 @@ INSTALL_UID="${UID}" NETDATA_GROUP="${NETDATA_GROUP}" REINSTALL_COMMAND="${REINSTALL_COMMAND}" RELEASE_CHANNEL="${RELEASE_CHANNEL}" +IS_NETDATA_STATIC_BINARY="${IS_NETDATA_STATIC_BINARY}" # This value is meant to be populated by autoupdater (if enabled) NETDATA_TARBALL_CHECKSUM="new_installation" EOF |