Skip to content

Instantly share code, notes, and snippets.

@spokanemac
Created May 28, 2020 21:18
Show Gist options
  • Save spokanemac/55767414ddc596e80c2aefa026af5840 to your computer and use it in GitHub Desktop.
Save spokanemac/55767414ddc596e80c2aefa026af5840 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Check to see if RunClient is missing (indicates removal)
if [ ! -e /Library/MonitoringClient/RunClient ]; then
# if not found, let's download the latest and reinstall
/usr/bin/curl -L1 https://YOURSUBDOMAIN.monitoringclient.com/downloads/MonitoringClient.pkg -o /tmp/MonitoringClient.pkg
/usr/sbin/installer -target / -pkg /tmp/MonitoringClient.pkg
/bin/rm /tmp/MonitoringClient.pkg
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment