summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2021-05-28 20:09:08 +0300
committerGitHub <noreply@github.com>2021-05-28 20:09:08 +0300
commit4561d6a5a92e71ef7652651ac4802a22191aa7c5 (patch)
treef885554fd634f95e51b04547f44417cba47cdf72 /packaging
parentc5e27ae25179a3a3430add094c33236e57b1e674 (diff)
fix `install_type` detection during update (#11199)
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/installer/netdata-updater.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/installer/netdata-updater.sh b/packaging/installer/netdata-updater.sh
index f4eff34986..520c8958a6 100755
--- a/packaging/installer/netdata-updater.sh
+++ b/packaging/installer/netdata-updater.sh
@@ -328,7 +328,7 @@ update() {
fi
if [ -e "${NETDATA_PREFIX}/etc/netdata/.install-type" ] ; then
- install_type="$(cat /opt/netdata/etc/netdata/.install-type)"
+ install_type="$(cat "${NETDATA_PREFIX}"/etc/netdata/.install-type)"
else
install_type="INSTALL_TYPE='legacy-build'"
fi