Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.90 KB | None | 0 0
  1. #!/bin/bash
  2. port=`sudo cat /Library/Application\ Support/CrashPlan/.ui_info | cut -d , -f1`
  3. secret=`ssh  ipofsynology 'echo \`cat /var/lib/crashplan/.ui_info\`' | cut -d , -f2`
  4. ip=`sudo cat /Library/Application\ Support/CrashPlan/.ui_info | cut -d , -f3`
  5.  
  6. ls -l /Library/Application\ Support/CrashPlan/.ui_info  | cut -d " " -f1
  7. echo change file rights
  8. sudo chmod 666 /Library/Application\ Support/CrashPlan/.ui_info
  9. ls -l /Library/Application\ Support/CrashPlan/.ui_info  | cut -d " " -f1
  10. echo input $port,$secret,$ip
  11. echo check file old value `cat /Library/Application\ Support/CrashPlan/.ui_info`
  12. echo $port,$secret,$ip >  /Library/Application\ Support/CrashPlan/.ui_info
  13. echo check file `cat /Library/Application\ Support/CrashPlan/.ui_info`
  14. echo fix file rights
  15. sudo chmod 644 /Library/Application\ Support/CrashPlan/.ui_info
  16. ls -l /Library/Application\ Support/CrashPlan/.ui_info  | cut -d " " -f1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement