diff options
-rwxr-xr-x | packaging/installer/kickstart.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh index f91e4b7060..f21de64085 100755 --- a/packaging/installer/kickstart.sh +++ b/packaging/installer/kickstart.sh @@ -881,9 +881,8 @@ detect_existing_install() { if [ -n "${ndprefix}" ]; then typefile="${ndprefix}/etc/netdata/.install-type" if [ -r "${typefile}" ]; then - run_as_root sh -c "cat \"${typefile}\" > \"${tmpdir}/install-type\"" # shellcheck disable=SC1090,SC1091 - . "${tmpdir}/install-type" + . "${typefile}" else INSTALL_TYPE="unknown" fi @@ -891,9 +890,8 @@ detect_existing_install() { envfile="${ndprefix}/etc/netdata/.environment" if [ "${INSTALL_TYPE}" = "unknown" ] || [ "${INSTALL_TYPE}" = "custom" ]; then if [ -r "${envfile}" ]; then - run_as_root sh -c "cat \"${envfile}\" > \"${tmpdir}/environment\"" - # shellcheck disable=SC1091 - . "${tmpdir}/environment" + # shellcheck disable=SC1090,SC1091 + . "${envfile}" if [ -n "${NETDATA_IS_STATIC_INSTALL}" ]; then if [ "${NETDATA_IS_STATIC_INSTALL}" = "yes" ]; then INSTALL_TYPE="legacy-static" |