Created
November 16, 2016 20:56
Star
You must be signed in to star a gist
Bomber JC Scripts for Muni
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
<key>postinstall_script</key> | |
<string>#!/bin/sh | |
# Attach the Cached DMG from the Waiting Room | |
hdiutil attach -nobrowse -noverify /tmp/bomgar-scc-w0hdc308ewf5jf6z6eg7d8ewg5gx87yiizxxxwwc40jc90.dmg | |
# Install the client from the standard mount location for the bomgar-scc client installer. | |
/Volumes/bomgar-scc/Double-Click\ To\ Start\ Support\ Session.app/Contents/MacOS/sdcust& | |
# If you want to run the hdiutil detach, add a wait command so that it finishes installing first | |
# wait 60 | |
# hdiutil detach /Volumes/bomgar-scc | |
</string> | |
<key>preinstall_script</key> | |
<string>#!/bin/sh | |
if ls /Library/LaunchAgents/com.bomgar.bomgar-scc* 1> /dev/null 2>&1 | |
then | |
kill $(ps aux | grep 'bomgar' | grep -v grep | awk '{print $2}') | |
launchctl unload /Library/LaunchAgents/com.bomgar.bomgar-scc* | |
rm -rf /Users/Shared/bomgar-scc* | |
rm -rf /Library/LaunchAgents/com.bomgar.bomgar-scc* | |
rm -rf /Library/LaunchDaemons/com.bomgar.bomgar-ps* | |
exit 0 | |
fi | |
</string> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment