if i edit netdata-updater.sh won’t work because this file will be replaced somehow. So in the end i define TMPDIR in ~/.bash_profile, and source this profile while running custom cron.
cron.daily]# ./netdata-updater
Wed Nov 18 14:56:56 +08 2020 : INFO: Running on a terminal - (this script also supports running headless from crontab)
Wed Nov 18 14:56:57 +08 2020 : INFO: Current Version: 00102600000207
Wed Nov 18 14:56:57 +08 2020 : INFO: Latest Version: 00102600000207
Wed Nov 18 14:56:57 +08 2020 : INFO: Newest version (current=00102600000207 >= latest=00102600000207) is already installed
i assume this works?
I still receiving /tmp permission denied email though, that should be the script running at cron.daily which doesn’t work. Any way to disable auto updater?
As @OdysLam said, this is a problem that we are working to fix. On CentOS 7 in normal situation it is not allowed to run any script inside /tmp, and some users decided to disable noexec on it, but this can also be a security problem. We will need to change our installation script to use a different directory to run the updates.
For anyone else running into this problem, I looked through the source of /etc/cron.daily/netdata-updater (which may have changed since this 2020 thread) and see that it checks for a NETDATA_TMPDIR_PATH environment variable, and will use that in preference to TMP_DIR. So, we can define something like this in /etc/anacrontab so it is defined before any of the cron.daily etc. scripts are run: