From da7f215ad6c98cbf54ab93dbc1d2457ac01dbb08 Mon Sep 17 00:00:00 2001 From: "Austin S. Hemmelgarn" Date: Fri, 18 Feb 2022 10:08:38 -0500 Subject: 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. --- contrib/debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/debian') diff --git a/contrib/debian/rules b/contrib/debian/rules index f36e995fc8..57e861c218 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -75,6 +75,10 @@ override_dh_install: mkdir -p "$(TOP)/var/cache/netdata" mkdir -p "$(TOP)/var/run/netdata" + # Copy the updater script + # + cp -v packaging/installer/netdata-updater.sh $(TOP)/usr/libexec/netdata/netdata-updater.sh + # Move files that local user shouldn't be editing to /usr/share/netdata # mkdir -p "$(TOP)/usr/share/netdata/www" @@ -108,6 +112,10 @@ override_dh_installdocs: override_dh_fixperms: dh_fixperms + # Updater script should be executable + # + chmod 0755 $(TOP)/usr/libexec/netdata/netdata-updater.sh + # apps.plugin should only be runnable by the netdata user. It will be # given extra capabilities in the postinst script. # -- cgit v1.2.3