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.
Austin S. Hemmelgarn committed
Jun 1, 2020 at 07:57 UTC
55007201685eec5051843fbbb93f290a7178948e
1 file changed
+1
-1
packaging/makeself/jobs/70-netdata-git.install.sh
+1
-1
@@ -25,7 +25,7 @@ run ./netdata-installer.sh \
25
--dont-start-it
26
27
# Remove the netdata.conf file from the tree. It has hard-coded sensible defaults builtin.
28
-rm -f "${NETDATA_INSTALL_PARENT}/etc/netdata/netdata.conf"
28
+run rm -f "${NETDATA_INSTALL_PATH}/etc/netdata/netdata.conf"
29
30
# Ensure the netdata binary is in fact statically linked
31
if run readelf -l "${NETDATA_INSTALL_PATH}"/bin/netdata | grep 'INTERP'; then