0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-27 14:16:20 +00:00

Update kickstart.sh ()

use "echo -e"
This commit is contained in:
eya46 2024-09-21 00:46:16 +08:00 committed by GitHub
parent 96e3422b3c
commit a270a04b6f
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 \"${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