Add install and uninstall scripts

This commit is contained in:
mlsmaycon
2022-05-24 18:15:08 +02:00
parent d55199d393
commit c5e66ebdaa
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env sh
# check if wiretrustee is installed
WT_BIN=$(which wiretrustee)
if [ -n "$WT_BIN" ]
then
wiretrustee service stop
wiretrustee service start
fi
# check if netbird is installed
NB_BIN=$(which netbird)
if [ -z "$NB_BIN" ]
then
echo "netbird is not installed. Please run: brew install netbirdio/tap/netbird"
exit 1
fi
# start netbird daemon service
netbird service install
netbird service start
netbird version