mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-09 06:59:08 +02:00
[client] Stop and remove the daemon on netbird-ui cask uninstall (#6977)
This commit is contained in:
@@ -29,8 +29,13 @@ cask "{{ $projectName }}" do
|
|||||||
end
|
end
|
||||||
|
|
||||||
uninstall_preflight do
|
uninstall_preflight do
|
||||||
system_command "#{appdir}/Netbird UI.app/uninstaller.sh",
|
system_command "/bin/sh",
|
||||||
sudo: false
|
args: ["-c", <<~CMD],
|
||||||
|
launchctl bootout system/netbird 2>/dev/null || \
|
||||||
|
launchctl unload /Library/LaunchDaemons/netbird.plist 2>/dev/null || true
|
||||||
|
rm -f /Library/LaunchDaemons/netbird.plist
|
||||||
|
CMD
|
||||||
|
sudo: true
|
||||||
end
|
end
|
||||||
|
|
||||||
name "Netbird UI"
|
name "Netbird UI"
|
||||||
|
|||||||
Reference in New Issue
Block a user