diff options
author | James Mills <1290234+prologic@users.noreply.github.com> | 2020-01-21 09:08:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 09:08:30 +1000 |
commit | 07d5029392f5b0b3290f4c76b6659eba83becd87 (patch) | |
tree | c65899925b2c0a47bb3af864333279d250f04d0a /packaging | |
parent | 6ba71e1704ef9fcd9335e1e4e1ad844b00a082fd (diff) |
Fixed install on FreeBSD systems with non GNU sed (do't use -i) (#7796)
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/installer/functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index b6830b1c7d..3bdea5ea32 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -782,7 +782,7 @@ install_netdata_updater() { cat "${NETDATA_SOURCE_DIR}/packaging/installer/netdata-updater.sh" >"${NETDATA_PREFIX}/usr/libexec/netdata/netdata-updater.sh" || return 1 fi - sed -e "s|THIS_SHOULD_BE_REPLACED_BY_INSTALLER_SCRIPT|${NETDATA_USER_CONFIG_DIR}/.environment|" -i "${NETDATA_PREFIX}/usr/libexec/netdata/netdata-updater.sh" || return 1 + sed -i -e "s|THIS_SHOULD_BE_REPLACED_BY_INSTALLER_SCRIPT|${NETDATA_USER_CONFIG_DIR}/.environment|" "${NETDATA_PREFIX}/usr/libexec/netdata/netdata-updater.sh" || return 1 chmod 0755 ${NETDATA_PREFIX}/usr/libexec/netdata/netdata-updater.sh echo >&2 "Update script is located at ${TPUT_GREEN}${TPUT_BOLD}${NETDATA_PREFIX}/usr/libexec/netdata/netdata-updater.sh${TPUT_RESET}" @@ -846,5 +846,5 @@ disable_netdata_updater() { } set_netdata_updater_channel() { - sed -e "s/^RELEASE_CHANNEL=.*/RELEASE_CHANNEL=\"${RELEASE_CHANNEL}\"/" -i "${NETDATA_USER_CONFIG_DIR}/.environment" + sed -i -e "s/^RELEASE_CHANNEL=.*/RELEASE_CHANNEL=\"${RELEASE_CHANNEL}\"/" "${NETDATA_USER_CONFIG_DIR}/.environment" } |