mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-29 19:43:57 +01:00
18 lines
276 B
Bash
Executable File
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
|
|
|