Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.