From 8f51985fa548b4550a646c0bf66f92c3f89ebc0a Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Mon, 5 Jun 2023 21:23:42 +0200 Subject: [PATCH] switch to clean stop --- release_files/darwin_pkg/preinstall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release_files/darwin_pkg/preinstall b/release_files/darwin_pkg/preinstall index f069c2bec..add71eb22 100755 --- a/release_files/darwin_pkg/preinstall +++ b/release_files/darwin_pkg/preinstall @@ -5,7 +5,7 @@ LOG_FILE=/var/log/netbird/client_install.log mkdir -p /var/log/netbird/ { - pkill -f netbird || true + osascript -e 'quit app "Netbird"' || true echo "Preinstall complete" exit 0 # all good } &> $LOG_FILE