Last active
February 12, 2016 18:43
-
-
Save stevewood-tx/e5058c352361d6f79d47 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/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