Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @beng-hee-eu beng-hee-eu revised this gist Feb 19, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions change_crashplan_backup_service_port.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,5 @@ 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
  2. @beng-hee-eu beng-hee-eu created this gist Feb 18, 2014.
    6 changes: 6 additions & 0 deletions change_crashplan_backup_service_port.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/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
    sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist