From 933fe1964afe07be20e770da9200ad5aebf48661 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Mon, 5 Jun 2023 21:46:13 +0200 Subject: [PATCH] revert to pkill and adding service stop --- release_files/darwin_pkg/preinstall | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/release_files/darwin_pkg/preinstall b/release_files/darwin_pkg/preinstall index add71eb22..80b8dcd97 100755 --- a/release_files/darwin_pkg/preinstall +++ b/release_files/darwin_pkg/preinstall @@ -5,7 +5,10 @@ LOG_FILE=/var/log/netbird/client_install.log mkdir -p /var/log/netbird/ { - osascript -e 'quit app "Netbird"' || true + netbird service stop || true + netbird service uninstall || true + pkill -f netbird || true + echo "Preinstall complete" exit 0 # all good } &> $LOG_FILE