0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-13 17:19:11 +00:00

Fix broken claiming via kickstart on some systems. ()

This commit is contained in:
Austin S. Hemmelgarn 2024-10-15 14:09:16 -04:00 committed by GitHub
parent 9b25da542d
commit b95971fe21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1275,7 +1275,7 @@ write_claim_config() {
run_as_root touch "${claim_config}.tmp" || return 1
run_as_root chmod 0640 "${claim_config}.tmp" || return 1
run_as_root chown ":${NETDATA_CLAIM_GROUP:-netdata}" "${claim_config}.tmp" || return 1
run_as_root sh -c "echo -e \"${config}\" > \"${claim_config}.tmp\"" || return 1
run_as_root sh -c "printf '${config}\\n' > \"${claim_config}.tmp\"" || return 1
run_as_root mv -f "${claim_config}.tmp" "${claim_config}" || return 1
if [ -z "${NETDATA_CLAIM_NORELOAD}" ]; then