Skip to content

Instantly share code, notes, and snippets.

@stevewood-tx
Last active February 12, 2016 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevewood-tx/e5058c352361d6f79d47 to your computer and use it in GitHub Desktop.
Save stevewood-tx/e5058c352361d6f79d47 to your computer and use it in GitHub Desktop.
#!/bin/sh
# unload CrashPlan LaunchDaem if it exists
if [[ -e /Library/LaunchDaemons/com.crashplan.engine.plist ]]; then
launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
/Library/Application\ Support/CrashPlan/Uninstall.app/Contents/Resources/uninstall.sh
rm -rf /Library/Application\ Support/CrashPlan
fi
# install the custom properties folder
jamf policy -event CrashInstall
# now install CrashPlan
curl http://yourserveraddress:4280/download/Code42CrashPlan_Mac.dmg > /var/tmp/CP.dmg
hdiutil attach /var/tmp/CP.dmg
installer -pkg /Volumes/Code42CrashPlan/Install\ Code42\ CrashPlan.pkg -target /
hdiutil detach /Volumes/Code42CrashPlan
rm -rf /var/tmp/CP.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment