Properly handle saved temporary directory on updates. (#10550)
Austin S. Hemmelgarn committed
Jan 26, 2021 at 07:15 UTC
1e2a5297a1e556080a9a3dc61a9ef28cd5488363
1 file changed
+1
-1
packaging/installer/netdata-updater.sh
+1
-1
@@ -116,7 +116,7 @@ _cannot_use_tmpdir() {
116
117
create_tmp_directory() {
118
if [ -n "${NETDATA_TMPDIR_PATH}" ]; then
119
- echo "${NETDATA_TMPDIR_PATH}"
119
+ TMPDIR="${NETDATA_TMPDIR_PATH}"
120
else
121
if [ -z "${NETDATA_TMPDIR}" ] || _cannot_use_tmpdir "${NETDATA_TMPDIR}" ; then
122
if [ -z "${TMPDIR}" ] || _cannot_use_tmpdir "${TMPDIR}" ; then