netbird/release_files/darwin_pkg/preinstall
2023-06-06 17:35:27 +02:00

18 lines
276 B
Bash
Executable File

#!/bin/sh
set -x
LOG_FILE=/var/log/netbird/client_pre_install.log
AGENT=/usr/local/bin/netbird
mkdir -p /var/log/netbird/
{
osascript -e 'quit app "Netbird"' || true
$AGENT service stop || true
echo "Preinstall complete"
exit 0 # all good
} &> $LOG_FILE