mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
This commit is contained in:
parent
e2c8700013
commit
b56d2e452e
2 changed files with 3 additions and 0 deletions
1
changes/issue-6441-kill-old-desktop-when-installing
Normal file
1
changes/issue-6441-kill-old-desktop-when-installing
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Stop the old version of Fleet desktop before starting a new version.
|
||||
|
|
@ -55,6 +55,8 @@ ln -sf /opt/orbit /var/lib/orbit
|
|||
DAEMON_LABEL="com.fleetdm.orbit"
|
||||
DAEMON_PLIST="/Library/LaunchDaemons/${DAEMON_LABEL}.plist"
|
||||
|
||||
# Stop the previous desktop agent
|
||||
pkill fleet-desktop || true
|
||||
# Remove any pre-existing version of the config
|
||||
launchctl bootout "system/${DAEMON_LABEL}"
|
||||
# Add the daemon to the launchd system
|
||||
|
|
|
|||
Loading…
Reference in a new issue