[client] Stop and remove the daemon on netbird-ui cask uninstall (#6977)

This commit is contained in:
Viktor Liu
2026-07-30 13:11:27 +02:00
committed by GitHub
parent 1bf54ddd8f
commit cff49237b6
+7 -2
View File
@@ -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"