diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-10-13 07:25:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-13 07:25:43 -0400 |
commit | d766183f6c1574f9998400fc8b1fc89ba99550c5 (patch) | |
tree | afbd9a14cdbdeb4a54347eb7f9f4b0e92cf97176 /packaging/installer | |
parent | fb86ddd70d14f7943e0314b02235ce3cbca5cb2d (diff) |
Fix existing install detection for FreeBSD and macOS. (#13243)
Diffstat (limited to 'packaging/installer')
-rwxr-xr-x | packaging/installer/kickstart.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh index be39765c48..eee43f038f 100755 --- a/packaging/installer/kickstart.sh +++ b/packaging/installer/kickstart.sh @@ -807,7 +807,10 @@ detect_existing_install() { fi if [ -n "${ndpath}" ]; then - ndprefix="$(dirname "$(dirname "${ndpath}")")" + case "${ndpath}" in + */usr/bin/netdata|*/usr/sbin/netdata) ndprefix="$(dirname "$(dirname "$(dirname "${ndpath}")")")" ;; + *) ndprefix="$(dirname "$(dirname "${ndpath}")")" ;; + esac fi if echo "${ndprefix}" | grep -Eq '^/usr$'; then |