Skip to content

Instantly share code, notes, and snippets.

@gmarnin
Created November 16, 2016 20:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gmarnin/e8e38d404eaf9a8158e02aa921417592 to your computer and use it in GitHub Desktop.
Bomber JC Scripts for Muni
<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&amp;
# 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&gt;&amp;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