Skip to content

Commit

Permalink
kickstart: fix write_claim_config when executed as a regular user (ne…
Browse files Browse the repository at this point in the history
…tdata#18406)

* kickstart: fix write_claim_config when executed as a regular user

* fix return
  • Loading branch information
ilyam8 authored Aug 25, 2024
1 parent c4ad1e0 commit 933a209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/installer/kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 echo "${config}" > "${claim_config}.tmp" || return 1
run_as_root sh -c "echo \"${config}\" > \"${claim_config}.tmp\"" || return 1
run_as_root mv -f "${claim_config}.tmp" "${claim_config}" || return 1

if [ -z "${NETDATA_CLAIM_NORELOAD}" ]; then
Expand Down

0 comments on commit 933a209

Please sign in to comment.