-
Notifications
You must be signed in to change notification settings - Fork 4
Munki Deployment
The BlueSky Admin agent can be imported into munki and deployed as an optional or an unattended install.
To remove BlueSky I use a separate offboarding script delivered by munki as an On Demand "nopkg" item.
The Post-Install script:
#!/bin/zsh
#Remove BlueSky using munki nopkg script.
#based on @kginger macAdmins Slack BlueSky remover
echo selfdestruct > /var/bluesky/.getHelp
sleep 30
launchctl unload -w /Library/LaunchDaemons/com.solarwindsmsp.bluesky.helper.plist
launchctl unload -w /Library/LaunchDaemons/com.solarwindsmsp.bluesky.plist
launchctl unload -w /Library/LaunchDaemons/com.solarwindsmsp.bluesky.reconnect.plist
launchctl unload -w /Library/LaunchDaemons/com.solarwindsmsp.bluesky.sleepwatcher.plist
launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
systemsetup -f -setremotelogin off
rm -rf /var/bluesky
rm -rf /Library/LaunchDaemons/com.solarwindsmsp.bluesky.helper.plist
rm -rf /Library/LaunchDaemons/com.solarwindsmsp.bluesky.plist
rm -rf /Library/LaunchDaemons/com.solarwindsmsp.bluesky.reconnect.plist
rm -rf /Library/LaunchDaemons/com.solarwindsmsp.bluesky.sleepwatcher.plist
rm /private/var/db/receipts/com.solarwindsmsp.bluesky.pkg.bom
rm /private/var/db/receipts/com.solarwindsmsp.bluesky.pkg.plist
pkgutil --forget com.solarwindsmsp.bluesky.pkg
dscl . -delete /Users/bluesky
exit 0