Skip to content

Commit

Permalink
Fix Mac pkg source check
Browse files Browse the repository at this point in the history
  • Loading branch information
pappz committed Oct 27, 2023
1 parent 0bf50d8 commit 94503fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 0 additions & 8 deletions release_files/darwin-ui-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ then
wiretrustee service uninstall || true
fi

# check if it was installed with brew
brew list --formula | grep netbird
if [ $? -eq 0 ]
then
echo "NetBird has been installed with Brew. Please use Brew to update the package."
exit 1
fi

# check if netbird is installed
NB_BIN=$(which netbird)
if [ -z "$NB_BIN" ]
Expand Down
7 changes: 7 additions & 0 deletions release_files/darwin_pkg/preinstall
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ AGENT=/usr/local/bin/netbird
mkdir -p /var/log/netbird/

{
# check if it was installed with brew
brew list --formula | grep netbird
if [ $? -eq 0 ]
then
echo "NetBird has been installed with Brew. Please use Brew to update the package."
exit 1
fi
osascript -e 'quit app "Netbird"' || true
$AGENT service stop || true

Expand Down

0 comments on commit 94503fd

Please sign in to comment.