diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-09-15 07:40:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 07:40:05 -0400 |
commit | 59a2aec9c8fb2dfbcfe80668571c39cc08af770c (patch) | |
tree | 76f6e5ec9524c51161016a4724a6faffe8946df4 /build | |
parent | 0d8972d9c1809e3b68efbe3b1634d6f064f6de7c (diff) |
Added support for using `/etc/cron.d` for auto-updates. (#9598)
* Add crontab fragment for netdata updater.
This adds a crontab fragment to be put in `/etc/cron.d` on system swhich
do not support either `/etc/cron.daily` or `/etc/periodic/daily`,
allowing for proper auto-updater support on such systems.
The crontab will run upates at 02:57, which was chosen arbitrarily
because it does not conflict with th erun times for any major
distribution's daily scheduled tasks.
* Utilize the crontab fragment for updates on systems that need it.
This adds logic to utilize the crontab fragment added by the previous
commit on systems which need it for auto-updates to work. The installer
will preferentially use `/etc/cron.daily` or `/etc/periodic/daily`
instead if they exist, so this should result in no changes for most
users.
* Remove systemd scheduler detection.
We're not actually using it right now, and it breaks handling of
auto-updates on systemd systems.
Diffstat (limited to 'build')
-rw-r--r-- | build/subst.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/build/subst.inc b/build/subst.inc index 2ec1116030..af97623340 100644 --- a/build/subst.inc +++ b/build/subst.inc @@ -5,6 +5,7 @@ -e 's#[@]pluginsdir_POST@#$(pluginsdir)#g' \ -e 's#[@]configdir_POST@#$(configdir)#g' \ -e 's#[@]libconfigdir_POST@#$(libconfigdir)#g' \ + -e 's#[@]pkglibexecdir_POST@#$(pkglibexecdir)#g' \ -e 's#[@]cachedir_POST@#$(cachedir)#g' \ -e 's#[@]registrydir_POST@#$(registrydir)#g' \ -e 's#[@]varlibdir_POST@#$(varlibdir)#g' \ |