summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/install-or-update.sh
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-02-18 10:08:38 -0500
committerGitHub <noreply@github.com>2022-02-18 10:08:38 -0500
commitda7f215ad6c98cbf54ab93dbc1d2457ac01dbb08 (patch)
treee8a02e870c9a45a8ba2e45614d25254b1cea7a1f /packaging/makeself/install-or-update.sh
parentf3e8c077cfdaebd8073927803a2a4707a302d26a (diff)
Overhaul handling of auto-updates in the installer code. (#12076)
* Bundle updater script in native packages. * Move code for enabling/disabling auto-updates to netdata-updater.sh This lets us handle the logic sanely from the kickstart script regardless of the install method, and allows users to more reliably toggle auto-updates themselves without having to understand what is being done. * Add proper case-agnosticism to auto-update type selection. * Move auto-updater handling code to kickstart script. * Properly handle running against an older source tree. * First part of updater docmentation updates. * Fixed handling of updater in DEB packages. * Further documentation updates. * Minor typo fixes.
Diffstat (limited to 'packaging/makeself/install-or-update.sh')
-rwxr-xr-xpackaging/makeself/install-or-update.sh13
1 files changed, 1 insertions, 12 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh
index 2fd7629b20..6a4cd5b971 100755
--- a/packaging/makeself/install-or-update.sh
+++ b/packaging/makeself/install-or-update.sh
@@ -26,7 +26,6 @@ if [ -d /opt/netdata/etc/netdata.old ]; then
fi
STARTIT=1
-AUTOUPDATE=0
REINSTALL_OPTIONS=""
RELEASE_CHANNEL="nightly" # check .travis/create_artifacts.sh before modifying
@@ -36,10 +35,7 @@ while [ "${1}" ]; do
STARTIT=0
REINSTALL_OPTIONS="${REINSTALL_OPTIONS} ${1}"
;;
- "--auto-update" | "-u")
- AUTOUPDATE=1
- REINSTALL_OPTIONS="${REINSTALL_OPTIONS} ${1}"
- ;;
+ "--auto-update" | "-u") ;;
"--stable-channel")
RELEASE_CHANNEL="stable"
REINSTALL_OPTIONS="${REINSTALL_OPTIONS} ${1}"
@@ -161,13 +157,6 @@ progress "Install (but not enable) netdata updater tool"
cleanup_old_netdata_updater || run_failed "Cannot cleanup old netdata updater tool."
install_netdata_updater || run_failed "Cannot install netdata updater tool."
-progress "Check if we must enable/disable the netdata updater tool"
-if [ "${AUTOUPDATE}" = "1" ]; then
- enable_netdata_updater || run_failed "Cannot enable netdata updater tool"
-else
- disable_netdata_updater || run_failed "Cannot disable netdata updater tool"
-fi
-
# -----------------------------------------------------------------------------
progress "creating quick links"