mirror of
https://github.com/netdata/netdata.git
synced 2025-04-27 14:16:20 +00:00
parent
96e3422b3c
commit
a270a04b6f
1 changed files with 1 additions and 1 deletions
|
@ -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 \"${config}\" > \"${claim_config}.tmp\"" || return 1
|
||||
run_as_root sh -c "echo -e \"${config}\" > \"${claim_config}.tmp\"" || return 1
|
||||
run_as_root mv -f "${claim_config}.tmp" "${claim_config}" || return 1
|
||||
|
||||
if [ -z "${NETDATA_CLAIM_NORELOAD}" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue