Created
May 28, 2020 21:18
-
-
Save spokanemac/55767414ddc596e80c2aefa026af5840 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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