summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/jobs
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-06-01 07:57:48 -0400
committerGitHub <noreply@github.com>2020-06-01 07:57:48 -0400
commit55007201685eec5051843fbbb93f290a7178948e (patch)
treea88ef774e28218c7db1e98f6bdc4bbb8d753095c /packaging/makeself/jobs
parent41c31b528c124909b5e01d9d1fd3fa32ba6a24d7 (diff)
Really prevent overwriting netdata.conf on static installs. (#9174)
The previous fix was incompletely tested and didn't actually workdue to using an incorrect variable name. This fixes that.
Diffstat (limited to 'packaging/makeself/jobs')
-rwxr-xr-xpackaging/makeself/jobs/70-netdata-git.install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/makeself/jobs/70-netdata-git.install.sh b/packaging/makeself/jobs/70-netdata-git.install.sh
index ebd2d30b67..c2cbad4c06 100755
--- a/packaging/makeself/jobs/70-netdata-git.install.sh
+++ b/packaging/makeself/jobs/70-netdata-git.install.sh
@@ -25,7 +25,7 @@ run ./netdata-installer.sh \
--dont-start-it
# Remove the netdata.conf file from the tree. It has hard-coded sensible defaults builtin.
-rm -f "${NETDATA_INSTALL_PARENT}/etc/netdata/netdata.conf"
+run rm -f "${NETDATA_INSTALL_PATH}/etc/netdata/netdata.conf"
# Ensure the netdata binary is in fact statically linked
if run readelf -l "${NETDATA_INSTALL_PATH}"/bin/netdata | grep 'INTERP'; then