mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-04 12:39:06 +02:00
Add install and uninstall scripts
This commit is contained in:
@@ -17,6 +17,16 @@ cask "{{ $projectName }}" do
|
|||||||
|
|
||||||
depends_on formula: "netbird"
|
depends_on formula: "netbird"
|
||||||
|
|
||||||
|
installer script: {
|
||||||
|
executable: "installer.sh",
|
||||||
|
sudo: true,
|
||||||
|
must_succeed: false,
|
||||||
|
}
|
||||||
|
|
||||||
|
uninstall script: {
|
||||||
|
executable: "uninstaller.sh",
|
||||||
|
args: ["service","stop"],
|
||||||
|
}
|
||||||
|
|
||||||
name "Netbird UI"
|
name "Netbird UI"
|
||||||
desc "Netbird UI Client"
|
desc "Netbird UI Client"
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# check if netbird is installed
|
||||||
|
NB_BIN=$(which netbird)
|
||||||
|
if [ -z "$NB_BIN" ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
# start netbird daemon service
|
||||||
|
echo "netbird daemon service still running. You can uninstall it by running: "
|
||||||
|
echo "sudo netbird service stop"
|
||||||
|
echo "sudo netbird service uninstall"
|
||||||
Reference in New Issue
Block a user