Forked from thebengeu/change_crashplan_backup_service_port.sh
Created
February 2, 2016 21:58
-
-
Save lemartinet/32cb846d98870ac2965e to your computer and use it in GitHub Desktop.
Change CrashPlan Backup Service Port (Default 4243 Conflicts with Docker / boot2docker)
This file contains hidden or 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 | |
PORT=4200 | |
sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist | |
sudo sed -i '' "s/\(<servicePort>\)[^<]*/\1$PORT/" /Library/Application\ Support/CrashPlan/conf/my.service.xml | |
sed -i '' "s/#*\(servicePort=\).*/\1$PORT/" /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties | |
defaults write /Applications/CrashPlan.app/Contents/Resources/CrashPlan\ menu\ bar.app/Contents/Info CPPort $PORT | |
sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment